Last active
July 17, 2018 12:44
-
-
Save simeonpashley/917f5f0ae5514a64f9bd74f6724a0426 to your computer and use it in GitHub Desktop.
Pulse
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.fx *, .fx::after, .fx::before { | |
box-sizing: border-box; | |
} | |
.fx .dot { | |
align-items: center; | |
background-color: rgba(43, 178, 76, 0.38); | |
border: 1px solid rgba(43, 178, 76, 0.54); | |
border-radius: 1rem; | |
box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.15); | |
cursor: pointer; | |
display: flex; | |
height: 1.5rem; | |
justify-content: center; | |
position: absolute; | |
transition: border 200ms, background-color 200ms, height 200ms, width 200ms; | |
width: 1.5rem; | |
} | |
.fx .dot:hover { | |
background-color: rgba(43, 178, 76, 0.54); | |
border-color: #2bb24c; | |
height: 2rem; | |
width: 2rem; | |
} | |
.dot-pulse::before, | |
.fx .dot-pulse::after { | |
background: transparent; | |
border: solid 1px #2bb24c; | |
border-radius: 50%; | |
content: ''; | |
height: 100%; | |
left: -1px; | |
position: absolute; | |
top: -1px; | |
transform-origin: center center; | |
width: 100%; | |
} | |
.fx .dot.bottom-right { | |
transform: translate(50%, 50%); | |
} | |
.fx .dot-pulse::before { | |
animation: ripple 1.4s infinite; | |
} | |
.fx .dot-pulse::after { | |
animation: ripple 1.4s infinite; | |
animation-delay: .8s; | |
} | |
.fx .dot-center { | |
background-color: #2bb24c; | |
border-radius: 50%; | |
height: 10px; | |
width: 10px; | |
} | |
<div class="bottom-right dot dot-pulse" style="z-index: 1; right: 50%; bottom: -0.5rem;"><div class="dot-center"></div></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment