Filter Animation
How do I make an filter animation?
Almanac Entry for CSS Filters http://css-tricks.com/almanac/properties/f/filters-css. What is a filter animation? How do you make a filter animation? This script and codes were developed by GRAY GHOST on 11 August 2022, Thursday.
Filter Animation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Filter Animation</title> <script src="http://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ button { position: absolute; top: 10px; right: 10px; z-index: 1;
}
img { display: block; width: 100%; }
img.animated { -webkit-animation: filter-animation 5s infinite;
}
@-webkit-keyframes filter-animation { 0% { -webkit-filter: sepia(0) saturate(2); } 50% { -webkit-filter: sepia(1) saturate(8); } 100% { -webkit-filter: sepia(0) saturate(2); }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <button>Click to Animate</button>
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/392/redwood-ukulele-top.jpg" alt="ukulele"> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Filter Animation - Script Codes CSS Codes
button { position: absolute; top: 10px; right: 10px; z-index: 1;
}
img { display: block; width: 100%; }
img.animated { -webkit-animation: filter-animation 5s infinite;
}
@-webkit-keyframes filter-animation { 0% { -webkit-filter: sepia(0) saturate(2); } 50% { -webkit-filter: sepia(1) saturate(8); } 100% { -webkit-filter: sepia(0) saturate(2); }
}
Filter Animation - Script Codes JS Codes
function activateFilterAnimation() { $('img').toggleClass('animated');
}
$('button').on('click', activateFilterAnimation);
Developer | GRAY GHOST |
Username | grayghostvisuals |
Uploaded | August 11, 2022 |
Rating | 3.5 |
Size | 2,234 Kb |
Views | 34,408 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Underneath | 93,385 Kb |
Facebook Android App Off Canvas Menu Pattern | 9,817 Kb |
The Wheel of Circles | 2,919 Kb |
Polyon Lion Enhanced | 10,801 Kb |
Accessible Dropdown Menu | 4,790 Kb |
Kid Passions | 11,380 Kb |
Rotating Rainbow Donut | 3,909 Kb |
Water | 3,277 Kb |
Fixed Curtains | 4,912 Kb |
Grayscale Filter | 1,791 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Sample Profile Screen | OurDailyBread | 5,375 Kb |
Mini Profile | Frytyler | 3,828 Kb |
FCC - Tribute Page | Cmwebby | 0 Kb |
Portfolio Landing Page | FDfranklin | 3,585 Kb |
Hard-Stop Gradients | Mackdoyle | 2,288 Kb |
Custom Select Element | Agrayson | 3,616 Kb |
SVG Transform vs CSS Transform | AmeliaBR | 4,175 Kb |
Brown by pure CSS, no image, no javascript | Aaronchuo | 2,652 Kb |
Image Hover | Johnheiner | 3,409 Kb |
700 Synapses Per Second | Silentkrange | 2,138 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!