Toggle navigation
Sign Up
Log In
Explore
Works
Folders
Tools
Collections
Artists
Groups
Groups
Topics
Tasks
Tasks
Jobs
Teams
Jobs
Recommendation
More Effects...
JS
jQuery('img.svg').each(function(){ var $img = jQuery(this); var imgID = $img.attr('id'); var imgClass = $img.attr('class'); var imgURL = $img.attr('src'); jQuery.get(imgURL, function(data) { // Get the SVG tag, ignore the rest var $svg = jQuery(data).find('svg'); // Add replaced image's ID to the new SVG if(typeof imgID !== 'undefined') { $svg = $svg.attr('id', imgID); } // Add replaced image's classes to the new SVG if(typeof imgClass !== 'undefined') { $svg = $svg.attr('class', imgClass+' replaced-svg'); } // Remove any invalid XML tags as per http://validator.w3.org $svg = $svg.removeAttr('xmlns:a'); // Replace image with new SVG $img.replaceWith($svg); }, 'xml'); });
CSS
BODY { background: grey; } .preloader { margin: 0 auto; position: absolute; display: block; top: 50%; left: 50%; margin-left: -30px; margin-top: -10px; } .cover { z-index: 9999; content:""; width: 124px; height: 72px; display: block; margin-top: -20px; margin-left: 2px; position: absolute; background-size: contain; background-repeat: none; } path { fill: #fff; } .disc { display: block; float: left; border-radius: 20px; width: 24px; height: 24px; margin: 4px; background: #dbe6ec; } .disc div { width: 24px; height: 24px; background: white; position: relative; margin-top: -24px; -webkit-animation: discmove 1.75s infinite; border-radius: 20px; } .blue div { background: #12dccc; } .red div { background: #fa5e5b; -webkit-animation-delay: 0.25s; } .green div { background: #1ac571; -webkit-animation-delay: 0.5s; } .orange div { background: #ffa337; -webkit-animation-delay: 0.75s; } @-webkit-keyframes discmove { 0% { -webkit-transform: translate(0px,0px); } 40% { -webkit-transform: translate(0px,24px); } 80% { -webkit-transform: translate(0px,48px); } 100% { -webkit-transform: translate(0px,48px); } }
HTML
Join Effecthub.com
Working with Global Gaming Artists and Developers!
Login
Sign Up
Or Login with Your Email Address:
Email
Password
Remember
Or Sign Up with Your Email Address:
Your Email
This field must contain a valid email
Set Password
Password should be at least 1 character
Stay informed via email