-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.css
53 lines (46 loc) · 885 Bytes
/
example.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
Slider animation css.
Something I cooked up real fast.
Feel free to experiment and change it.
Submit a pull request if you improve this.
*/
.slide-animation .slider {
z-index : -1;
position: absolute;
overflow: hidden;
background-color: red;
width: 50%;
height: 100%;
border-radius: 6px;
transition: 70ms ease-out all;
transform: translateX(100%);
color: red;
}
.slide-animation .slider.ng-enter {
z-index:10;
transform: translateX(0%);
}
.slide-animation .slider.ng-enter.ng-enter-active {
transform: translateX(100%);
z-index: -1;
color: white;
}
.slide-animation .ng-leave {
z-index:1;
transform: translateX(100%);
}
.slide-animation .ng-leave.ng-leave-active {
transform: translateX(0%);
z-index:0;
color: white;
}
/*
end animation css
*/
/*
remove the annoying angular material outline
copy to your code wisely.
*/
* {
outline: none;
}