SVG animated patterns
How do I make an svg animated patterns?
What is a svg animated patterns? How do you make a svg animated patterns? This script and codes were developed by Luuk Lamers on 22 January 2023, Sunday.
SVG animated patterns - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>SVG animated patterns</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <svg width="100%" height="200"> <pattern id="sinus1pat" x="0" y="0" width="2400" height="200" patternUnits="userSpaceOnUse"> <path id="sinus1path" d="m0,100 q600,60 1200,0 q600,-52 1200,0 q600,60 1200,0 q600,-52 1200,0" fill="none" stroke="white" stroke-width="3" stroke-opacity="0.1" /> <!--<animate id="sinus1anim" attributeName="x" from="0" to="2400" begin="0s" dur="1.5s" repeatCount="indefinite" />--> </pattern> <pattern id="sinus2pat" x="0" y="0" width="1600" height="200" patternUnits="userSpaceOnUse"> <path id="sinus2path" d="m0,100 q400,100 800,0 q400,-100 800,0 q400,100 800,0 q400,-100 800,0" stroke="#fff" fill="none" stroke-width="4" stroke-opacity="0.2" /> <!--<animate id="sinus2anim" attributeName="x" from="0" to="1600" begin="0s" dur="1s" repeatCount="indefinite" />--> </pattern> <rect x='0' y='0' width='100%' height='200' fill="url(#sinus1pat)" /> <rect x='0' y='0' width='100%' height='200' fill="url(#sinus2pat)" />
</svg>
<svg width="100%" height="200"> <linearGradient id="linearGradient"> <stop offset="0%" stop-color="#335094" /> <stop offset="25%" stop-color="#ffae00" /> <stop offset="35%" stop-color="#335094" /> <stop offset="65%" stop-color="#7387b5" /> <stop offset="100%" stop-color="#335094" /> </linearGradient> <pattern id="movingGradient" x="0" y="0" width="1200" height="200" patternUnits="userSpaceOnUse"> <rect x="0" y="0" width="1200" height="200" fill="url(#linearGradient)" /> <animate id="anim1" attributeName="x" from="0" to="1200" begin="0s" dur="10s" repeatCount="indefinite" /> </pattern> <pattern id="dots" x="10" y="10" width="20" height="20" patternUnits="userSpaceOnUse"> <rect x="2" y="0" width="16" height="20" fill="rgb(53,85,154)" /> <rect x="0" y="2" width="20" height="16" fill="rgb(53,85,154)" /> </pattern> <rect x="0" y="0" width="100%" height="100%" fill="url(#movingGradient)"></rect> <rect x="0" y="0" width="100%" height="100%" fill="url(#dots)"/>
</svg>
</body>
</html>
SVG animated patterns - Script Codes CSS Codes
svg { background-color: #3F5DA4; background-image: -webkit-linear-gradient(95deg, #1b3980 0, #3f5da4 48%, #3f5da4 52%, #1b3980 100%); background-image: linear-gradient(-5deg, #1b3980 0, #3f5da4 48%, #3f5da4 52%, #1b3980 100%);
}
@-webkit-keyframes move { from { -webkit-transform: translateX(0); transform: translateX(0); } to { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}
@keyframes move { from { -webkit-transform: translateX(0); transform: translateX(0); } to { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}
svg #sinus1path { -webkit-animation: move 1.5s linear infinite; animation: move 1.5s linear infinite;
}
svg #sinus2path { -webkit-animation: move 1s linear infinite; animation: move 1s linear infinite;
}
Developer | Luuk Lamers |
Username | xaddict |
Uploaded | January 22, 2023 |
Rating | 3 |
Size | 2,463 Kb |
Views | 4,048 |
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 |
Big text and big gradient | 2,796 Kb |
Fibonacci rotating spiral | 2,519 Kb |
Word count percentage | 2,793 Kb |
CSS Hex Color Clock | 3,351 Kb |
Progress circle | 2,700 Kb |
CSS3 Spinners | 2,878 Kb |
Continuum | 2,307 Kb |
Continuum logo in pure css | 2,506 Kb |
Individual Element rotation | 6,597 Kb |
Draw SVG polygon points in css | 2,720 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 |
Working around OS X Dynamic Scrollbars | Jrjenk | 2,279 Kb |
Display properties | Hamzaerbay | 1,886 Kb |
Delete Hover | Chungman93 | 2,557 Kb |
NT Tribute | Skybutterfly | 2,850 Kb |
Font stack | Adrianjacob | 1,868 Kb |
Fullscreen audio play button | 72 | 2,148 Kb |
03 - CSS Variables | Run-time | 2,682 Kb |
Yuliya v krylova | Rafszul | 37,351 Kb |
ABVI Menu Discarded | Overdrivemachines | 3,607 Kb |
Chuck Norris Background | Manz | 1,967 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!