javascript - SVG Fill Path Animation -


i don't have experience svg , animations, have following file jsfiddle want animate fill path color.

i want use loader new colour should fill path sliding across or similiar gives of "loading". can use color it's example...

thank you

i know it's not way want it, view link:

http://cdn.tinfishcreativedev.eu/eyeload/

it has simple implementation (quite crude @ minute, started).

the code in html file follows:

<style> body{     background:#f3f5f6;     text-align: center; }  .loader{     background: #000;     display: inline-block;     position: relative;     height:63px;     width:100px;     margin-top:300px; }   .loader img{     display: block;     position: absolute;     top: 0;     left: 0;     z-index:2; }  .loaderbar{     background: #16c38b;     width: 0;     position: relative;     z-index: 1;     height:100%;     -webkit-animation:grow 2s infinite linear; }  @-webkit-keyframes grow{     0%{ width:0; }     100%{ width: 100%; } } </style> <div class="loader">     <img src="eye.png" width="100" />     <div class="loaderbar"> </div>  

you js instead of keyframes working on older browsers ie8 if needed.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -