Multi coloured animated css text
How do I make an multi coloured animated css text?
Css only, multi-coloured, soothing animated beach text (phwoar). Check out some other cool text effects: http://codepen.io/collection/DamKJW/. What is a multi coloured animated css text? How do you make a multi coloured animated css text? This script and codes were developed by Mandy Michael on 16 December 2022, Friday.
Multi coloured animated css text - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Multi coloured animated css text</title> <link href='https://fonts.googleapis.com/css?family=Roboto:900,300' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="wrapper"> <h1 data-heading="Beach" contenteditable>Beach</h1>
</div> <script src="js/index.js"></script>
</body>
</html>
Multi coloured animated css text - Script Codes CSS Codes
html { height: 100%;
}
body { background: #1c8fac; height: 100%;
}
h1 { font-size: 20vw; top: 50%; margin: 0 0 0 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); position: absolute; font-weight: 900; white-space: nowrap; display: inline-block;
}
.wrapper { width: 100%; font-family: 'Roboto', sans-serif; margin: 0 auto; height: 100%;
}
.wrapper h1 { color: #39c3e5;
}
.wrapper h1:before { content: attr(data-heading); position: absolute; left: 0; top: 0; overflow: hidden; width: 100%; height: 60%; color: #82e2fa; -webkit-animation: ocean 3.5s ease-in-out forwards infinite; animation: ocean 3.5s ease-in-out forwards infinite;
}
.wrapper h1:after { content: attr(data-heading); position: absolute; left: 0; top: 0; z-index: 2; overflow: hidden; height: 53%; color: #ffe984; -webkit-animation: sand 3.5s ease-in-out forwards infinite; animation: sand 3.5s ease-in-out forwards infinite;
}
@-webkit-keyframes ocean { 0% { height: 60%; } 50% { height: 50%; } 100% { height: 60%; }
}
@keyframes ocean { 0% { height: 60%; } 50% { height: 50%; } 100% { height: 60%; }
}
@-webkit-keyframes sand { 0% { height: 53%; } 50% { height: 50%; } 100% { height: 53%; }
}
@keyframes sand { 0% { height: 53%; } 50% { height: 50%; } 100% { height: 53%; }
}
Multi coloured animated css text - Script Codes JS Codes
// JS is to make the text editable fot demo purpose, not required for the effect. Thanks for the suggestion @chriscoyier!
var h1 = document.querySelector("h1");
h1.addEventListener("input", function() { this.setAttribute("data-heading", this.innerText);
});
Developer | Mandy Michael |
Username | mandymichael |
Uploaded | December 16, 2022 |
Rating | 4.5 |
Size | 2,903 Kb |
Views | 20,240 |
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 |
Three way split with clip-path | 2,852 Kb |
Page layout text effects with clip-path | 3,988 Kb |
Think outside the div | 3,910 Kb |
80s style text with clip path and layered fonts | 3,618 Kb |
Layered fonts in css | 3,238 Kb |
Lines and layered css text effects | 3,570 Kb |
Awkward Zebra Text Effect | 2,961 Kb |
CSS Batman Mask | 2,599 Kb |
Vertical split layout text effect | 2,640 Kb |
Stripy Rainbow Text Effect | 2,842 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 |
V.35 The Monolith Update - Hero Release Notes | Jordan | 12,045 Kb |
CSS Google Now | Jackmoran | 3,196 Kb |
SVG Animation | Pollardld | 3,133 Kb |
Long Shadow Button | Uixcrazy | 3,550 Kb |
Css Rotating 3d cubes different speed | Dghez | 2,364 Kb |
Apex Calculator | Michaelwnelson | 2,370 Kb |
Toggle Time | Petebot | 5,345 Kb |
Cofee and sugar | Tripack | 2,094 Kb |
Velocity.js custom stagger | Tommiehansen | 4,805 Kb |
Emberjs Bootstrap Modal Carousel | Somethingkindawierd | 4,233 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!