| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cc48abd commit fe34f57
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,5 @@ | |||
| 1 | 1 | .full-page { | |
| 2 | + position: relative; | ||
| 2 | 3 | height: 100%; | |
| 3 | 4 | overflow: hidden; | |
| 4 | 5 | } | |
@@ -19,4 +20,15 @@ | |||
| 19 | 20 | .transition(@property:all,@duration:1s,@timing-function:linear,@delay:0s) { | |
| 20 | 21 | -webkit-transition: @arguments; | |
| 21 | 22 | transition: @arguments; | |
| 23 | + } | ||
| 24 | + | ||
| 25 | + .translate(@x:0,@y:0,@z:0) { | ||
| 26 | + -webkit-transform: translate3d(@x, @y, @z); | ||
| 27 | + transform: translate3d(@x, @y, @z); | ||
| 28 | + } | ||
| 29 | + | ||
| 30 | + .opacity(@val) { | ||
| 31 | + @val2: @val*100; | ||
| 32 | + opacity: @val; | ||
| 33 | + filter: ~'alpha(opacity=@{val2})'; /*LESS语法:在一个字符串中嵌入变量,我们使用@{}来处理即可*/ | ||
| 22 | 34 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments