Shapes recolored
How do I make an shapes recolored?
Play around with the color pickers to change the animation colors. Experimenting with exporting from AE with associated classes to modify default colors. . What is a shapes recolored? How do you make a shapes recolored? This script and codes were developed by Kittons on 09 September 2022, Friday.
Shapes recolored - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Shapes recolored</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="colorControls"> <input class="jscolor" value="43B195" id="color1"> <input class="jscolor" value="EA4352" id="color2"> <input class="jscolor" value="FAE935" id="color3"> <input class="jscolor" value="BBDC98" id="color4">
</div>
<div id="bodymovin"></div> <script src='https://labs.nearpod.com/bodymovin/demo/colors/bodymovin.js'></script>
<script src='https://labs.nearpod.com/bodymovin/demo/colors/jscolor.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Shapes recolored - Script Codes CSS Codes
.color1 { fill: #43B195; stroke: #43B195;
}
.color2 { fill: #EA4352; stroke: #EA4352;
}
.color3 { fill: #FAE935; stroke: #FAE935;
}
.color4 { fill: #BBDC98; stroke: #BBDC98;
}
#bodymovin { position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.colorControls { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}
html,body{ margin:0; overflow: hidden;
}
Shapes recolored - Script Codes JS Codes
var bodymovinContainer = document.getElementById('bodymovin');
var count = 0;
var animData = { container: document.getElementById('bodymovin'), renderer: 'svg', loop: true, prerender: false, autoplay: true, autoloadSegments: false, //animationData: anim2 path: 'https://labs.nearpod.com/bodymovin/demo/colors/data.json'
};
var anim;
anim = bodymovin.loadAnimation(animData);
var sheet = document.styleSheets[0];
var rules = sheet.cssRules || sheet.rules;
var color1 = document.getElementById('color1');
var color2 = document.getElementById('color2');
var color3 = document.getElementById('color3');
var color4 = document.getElementById('color4');
function changeRuleColor(rule, color) { rules[rule].style.fill = '#' + color; rules[rule].style.stroke = '#' + color;
}
function checkColor() { changeRuleColor(0, color1.value); changeRuleColor(1, color2.value); changeRuleColor(2, color3.value); changeRuleColor(3, color4.value);
}
setInterval(checkColor, 10);
Developer | Kittons |
Username | airnan |
Uploaded | September 09, 2022 |
Rating | 4.5 |
Size | 2,268 Kb |
Views | 32,384 |
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 |
HTML codepen banner | 1,488 Kb |
Animated form validation | 3,760 Kb |
The Glitcher | 2,260 Kb |
Mc A from Beastie boys | 1,825 Kb |
Perricorn. a dog that was a unicorn | 1,893 Kb |
Interactive IK from After Effects to svg | 2,268 Kb |
Holy space cows from the strange universe of cyriak | 4,805 Kb |
Behind the Grunt | 1,783 Kb |
Dotskin | 2,894 Kb |
IK from After Effects to svg | 1,949 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 |
Cloud upload | Jaflo | 2,774 Kb |
Nice textured background | Hans | 2,659 Kb |
BSP Dungeon Generation | Xgundam05 | 5,326 Kb |
CSS only simple parallax scroll | Stanssongs | 3,708 Kb |
Use the Twitchtv JSON API | Roksanaop | 3,561 Kb |
Emberjs Bootstrap Modal Carousel | Somethingkindawierd | 4,233 Kb |
Slide out Menu | Rbiggs | 4,936 Kb |
UI Challenge - Budget Selector | AgentRR007 | 3,547 Kb |
RRC wrapSwitch | Pshrmn | 2,922 Kb |
Animate elements with fixed gradient | Badabam | 4,406 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!