-Webkit-Filter Demo
How do I make an -webkit-filter demo?
Play with random controls.PS. the middle control is the best - it changes colors!. What is a -webkit-filter demo? How do you make a -webkit-filter demo? This script and codes were developed by Ariana Lynn on 05 September 2022, Monday.
-Webkit-Filter Demo - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>-Webkit-Filter Demo</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="img">
</div>
<div class="full"> <div class="side"> <input type="range" min="0" max="100" value="0" oninput="f('bl',this.value/10)" /> </div> <div class="side"> <input type="range" min="0" max="200" value="100" oninput="f('br',this.value/100)" /> </div> <div class="side"> <input type="range" min="0" max="200" value="100" oninput="f('c',this.value/100)" /> </div> <div class="side"> <input type="range" min="0" max="100" value="0" oninput="f('g',this.value/100)" /> </div> <div class="side"> <input type="range" min="0" max="100" value="0" oninput="f('h',this.value*3.6)" /> </div> <div class="side"> <input type="range" min="0" max="100" value="0" oninput="f('i',this.value/100)" /> </div> <div class="side"> <input type="range" min="0" max="10" value="10" oninput="f('o',this.value/10)" /> </div> <div class="side"> <input type="range" min="0" max="100" value="10" oninput="f('sa',this.value/10)" /> </div> <div class="side"> <input type="range" min="0" max="100" value="0" oninput="f('se',this.value/100)" /> </div>
</div> <script src="js/index.js"></script>
</body>
</html>
-Webkit-Filter Demo - Script Codes CSS Codes
#img { background: url('http://cook-wise.com/wp-content/uploads/parser/dinner-recipes-for-two-4.jpg'); background-size: cover; width: 100vw; height: 100vh; position: fixed; top: 0; left: 0;
}
* { opacity: 0.99;
}
.side { background: rgba(0, 0, 0, 0.8); display: block; padding: 14px 10px 20px 20px; border-radius: 5px; margin: 10px 5px; width: 120px
}
input[type=range] { -webkit-appearance: none; width: 90%
}
input[type=range]::-webkit-slider-runnable-track { height: 3px; background: #646464; border: none; border-radius: 3px
}
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; border: none; height: 5px; width: 5px; border-radius: 100%; background: #000; box-sizing: content-box; border: 6px solid #fff; margin-top: -6px
}
input[type=range]:focus { outline: none
}
input[type=range]:focus::-webkit-slider-runnable-track { background: #646464
}
.full { -webkit-transform: rotate(90deg) translateX(-100%); position: fixed; bottom: 5px; left: 0; -webkit-transform-origin: bottom left
}
-Webkit-Filter Demo - Script Codes JS Codes
var bl = 0, br = 1, c = 1, g = 0, h = '0', i = 0, o = 1, sa = 1, se = 0;
function f(a, b) { switch (a) { case 'bl': bl = b; break; case 'br': br = b; break; case 'c': c = b; break; case 'g': g = b; break; case 'h': h = b; break; case 'i': i = b; break; case 'o': o = b; break; case 'sa': sa = b; break; case 'se': se = b; break; } document.getElementById('img').style.webkitFilter = 'blur(' + bl + 'px) brightness(' + br + ') contrast(' + c + ') grayscale(' + g + ') hue-rotate(' + h + 'deg) invert(' + i + ') opacity(' + o + ') sepia(' + se + ') saturate(' + sa + ')'
}
Developer | Ariana Lynn |
Username | arianalynn |
Uploaded | September 05, 2022 |
Rating | 4.5 |
Size | 2,374 Kb |
Views | 26,312 |
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 |
Fireworks Show | 3,048 Kb |
Material Buttons.css | 3,707 Kb |
404 Error Message | 3,143 Kb |
Bubbles in the Sky | 2,313 Kb |
Live Chat | 3,481 Kb |
Gooey Share Buttons | 2,268 Kb |
Material Note App | 4,449 Kb |
Live Voting | 3,397 Kb |
Reveal Effect | 2,943 Kb |
Chat Widget | 2,798 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 |
Electric worm | Jeffibacache | 2,377 Kb |
Sony Xperia Z3 Flat MockUp | Dapinitial | 4,379 Kb |
Cartoon Bomb | Tcmulder | 4,929 Kb |
Jquery 2d character movement | Drewtadams | 4,291 Kb |
Sequence.js - Sliding Horizontal Parallax | Maheshc | 4,537 Kb |
Ionic - Wordpress REST API starter | Superpikar | 2,961 Kb |
Console fun | Dviate | 1,500 Kb |
The Rope | Chribbe | 2,886 Kb |
Coburg Banks SVG Logo | Mjtweaver | 3,875 Kb |
Scoreboard.js basic usage | Tbleckert | 1,733 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!