-
Notifications
You must be signed in to change notification settings - Fork 157
/
headhesive.css
73 lines (62 loc) · 1.38 KB
/
headhesive.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*----------------------------------------------------------------------------*\
Headhesive Specific Styles
/*----------------------------------------------------------------------------*/
/**
* Headhesive element clone
* > `clone` class for the cloned element:
*
* @example
* var options = {
* classes {
* clone: 'banner--clone';
* }
* }
*/
.banner--clone {
/* Required styles */
position: fixed;
z-index: 1;
top: 0;
left: 0;
/* Additional styles */
background: #c95a5d;
/* Translate -100% to move off screen */
-webkit-transform: translateY(-100%);
-ms-transform: translateY(-100%);
transform: translateY(-100%);
/* Animations */
-webkit-transition: all 300ms ease-in-out;
-moz-transition: all 300ms ease-in-out;
transition: all 300ms ease-in-out;
}
/**
* Headhesive stick
* > `stick` class for the cloned element:
*
* @example
* var options = {
* classes {
* stick: 'banner--stick';
* }
* }
*/
.banner--stick {
/* Translate back to 0%; */
-webkit-transform: translateY(0%);
-ms-transform: translateY(0%);
transform: translateY(0%);
}
/**
* Headhesive unstick
* > `unstick` class for the cloned element:
*
* @example
* var options = {
* classes {
* unstick: 'banner--unstick';
* }
* }
*/
.banner--unstick {
/* Not required to use, but could be useful to have */
}