SVG animated patterns

Developer
Size
2,463 Kb
Views
4,048

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 Previews

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;
}
SVG animated patterns - Script Codes
SVG animated patterns - Script Codes
Home Page Home
Developer Luuk Lamers
Username xaddict
Uploaded January 22, 2023
Rating 3
Size 2,463 Kb
Views 4,048
Do you need developer help for SVG animated patterns?

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!

Luuk Lamers (xaddict) Script Codes
Create amazing marketing copy with AI!

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!