|
|
|
$stickerFront: rgb(26, 148, 198); |
|
$stickerBack: darken(white, 10%); |
|
$stickerReveal: white; |
|
$stickerTextColor: $stickerReveal; |
|
$stickerRevealTextColor: $stickerFront; |
|
$pageBackgroundColor: $stickerFront; |
|
|
|
|
|
body { |
|
background-color: $pageBackgroundColor; |
|
color: white; |
|
font-size: 24px; |
|
font-weight: 200; |
|
user-select: none; |
|
} |
|
|
|
a { |
|
color: white; |
|
text-decoration: none; |
|
} |
|
|
|
.anim750 { |
|
transition: all 1s ease-in-out; |
|
} |
|
|
|
.wrapper { |
|
position: fixed; |
|
width: 280px; |
|
height: 280px; |
|
top: 40%; |
|
left: 50%; |
|
margin: -140px 0 0 -140px; |
|
} |
|
|
|
.sticker { |
|
position: relative; |
|
width: 280px; |
|
height: 280px; |
|
backface-visibility: hidden; |
|
.sticky { |
|
transform: rotate(35deg); |
|
position: absolute; |
|
top: 0; |
|
left: 0; |
|
width: 280px; |
|
height: 280px; |
|
} |
|
.reveal { |
|
.circle { |
|
width: 278px; |
|
height: 278px; |
|
top: 1px; |
|
left: 1px; |
|
line-height: 280px; |
|
text-align: center; |
|
color: $stickerRevealTextColor; |
|
cursor: pointer; |
|
background-color: $stickerReveal; |
|
img { |
|
vertical-align: middle; |
|
} |
|
} |
|
} |
|
.circle_wrapper { |
|
position: absolute; |
|
width: 280px; |
|
height: 280px; |
|
left: 0px; |
|
top: 0px; |
|
overflow: hidden; |
|
} |
|
.circle { |
|
position: absolute; |
|
width: 280px; |
|
height: 280px; |
|
border-radius: 50%; |
|
} |
|
.back { |
|
height: 0px; |
|
top: 0; |
|
.circle { |
|
margin-top: -280px; |
|
background-color: $stickerBack; |
|
box-shadow: rgba(0, 0, 0, .25) 0px 0px 3px, inset -1px -1px 3px rgba(0,0,0,.1); |
|
background-image: -webkit-linear-gradient(bottom, $stickerBack 120px, darken($stickerBack, 15%) 280px); |
|
} |
|
} |
|
.front { |
|
height: 280px; |
|
bottom: 0; |
|
top: auto; |
|
.circle { |
|
margin-top: 0; |
|
background-color: $stickerFront; |
|
background-position: 0 0; |
|
} |
|
} |
|
h4 { |
|
text-align: center; |
|
position: absolute; |
|
width: 280px; |
|
height: 280px; |
|
margin: 120px 0 0 0; |
|
font-size: 20px; |
|
line-height: 1.2; |
|
color: $stickerTextColor; |
|
opacity: 1; |
|
} |
|
&.peeled { |
|
.sticky { |
|
transform: rotate(5deg); |
|
} |
|
.front { |
|
height: 0px; |
|
box-shadow: 0 -60px 10px -60px rgba(0,0,0,.1); |
|
.circle { |
|
margin-top: -280px; |
|
background-position: 0 240px; |
|
background-image: -webkit-linear-gradient(bottom, $stickerFront 240px, darken($stickerFront, 15%) 280px); |
|
} |
|
} |
|
.back { |
|
height: 280px; |
|
top: 280px; |
|
.circle { |
|
margin-top: 0px; |
|
background-position: 0 -320px; |
|
background-size: 100%, 120%; |
|
} |
|
} |
|
h4 { |
|
opacity: 0; |
|
} |
|
} |
|
} |
|
|
|
.call-to-action { |
|
margin-top: 30px; |
|
text-align: center; |
|
a { |
|
position: relative; |
|
display: inline-block; |
|
padding: 0 30px; |
|
transition: all 250ms ease; |
|
&:after { |
|
display: inline; |
|
position: relative; |
|
margin-left: 3px; |
|
content: "..."; |
|
animation-fill-mode: both; |
|
animation: flash 5s; |
|
animation-iteration-count: infinite; |
|
} |
|
&:hover { |
|
transform: scale(1.2); |
|
} |
|
} |
|
} |
|
|
|
.info { |
|
position: fixed; |
|
top: 60px; |
|
right: -5px; |
|
font-size: 20px; |
|
transform: rotate(90deg); |
|
span { |
|
&:after { |
|
display: inline; |
|
position: relative; |
|
margin-left: 15px; |
|
content: "\2192"; |
|
animation-fill-mode: both; |
|
animation: shake 5s; |
|
animation-iteration-count: infinite; |
|
} |
|
} |
|
} |
|
|
|
@keyframes shake { |
|
0%, 100% { |
|
-webkit-transform: translateX(0); |
|
-ms-transform: translateX(0); |
|
transform: translateX(0); |
|
} |
|
|
|
10%, 30%, 50%, 70%, 90% { |
|
-webkit-transform: translateX(-10px); |
|
-ms-transform: translateX(-10px); |
|
transform: translateX(-10px); |
|
} |
|
|
|
20%, 40%, 60%, 80% { |
|
-webkit-transform: translateX(10px); |
|
-ms-transform: translateX(10px); |
|
transform: translateX(10px); |
|
} |
|
} |
|
|
|
@keyframes flash { |
|
0%, 50%, 100% { |
|
opacity: 1; |
|
} |
|
|
|
25%, 75% { |
|
opacity: 0; |
|
} |
|
} |