Skip to content

Commit fe34f57

Browse files
committed
push content
1 parent cc48abd commit fe34f57

5 files changed

Lines changed: 632 additions & 6 deletions

File tree

WEEK8/RESUME/css/common.less

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.full-page {
2+
position: relative;
23
height: 100%;
34
overflow: hidden;
45
}
@@ -19,4 +20,15 @@
1920
.transition(@property:all,@duration:1s,@timing-function:linear,@delay:0s) {
2021
-webkit-transition: @arguments;
2122
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语法:在一个字符串中嵌入变量,我们使用@{}来处理即可*/
2234
}

0 commit comments

Comments
 (0)