Skip to content

Instantly share code, notes, and snippets.

@Poordeveloper
Created November 10, 2015 16:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Poordeveloper/c11fca8b00279f8b3350 to your computer and use it in GitHub Desktop.
Save Poordeveloper/c11fca8b00279f8b3350 to your computer and use it in GitHub Desktop.
Gooey Loading Bar
<div class="loader">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<defs>
<filter id="goo">
<feGaussianBlur in="SourceGraphic" stdDeviation="10" result="blur" />
<feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 19 -9" result="goo" />
<feComposite in="SourceGraphic" in2="goo" operator="atop"/>
</filter>
</defs>
</svg>
html, body
background: #001D30
height: 100%
body
display: flex
align-items: center
justify-content: center
div.loader
display: inherit
width: 350px
position: relative
justify-content: space-between
filter: url(#goo)
&:before
content: ''
z-index: 1
background: #50fcf4
position: absolute
top: 50%
left: 50%
width: 40px
height: 40px
box-shadow: 0 0 40px #50fcf4
transform: translate(-50%, -50%)
animation: loading 1.5s infinite alternate ease-in-out
filter: blur(15px)
@keyframes loading
0%
left: 0
100%
left: 100%
> span
display: block
width: 50px
height: 50px
&:before,
> span
background: #4DB9FF
border-radius: 100%
svg
display: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment