CSS Triangle Animation

Developer
Size
2,638 Kb
Views
14,168

How do I make an css triangle animation?

Just a quick self-reminder of CSS shapes & transforms. What is a css triangle animation? How do you make a css triangle animation? This script and codes were developed by Adam Orchard on 02 December 2022, Friday.

CSS Triangle Animation Previews

CSS Triangle Animation - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Triangle Animation</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ body { background: #0e1d29; color: #389ea8;
}
.a { position: absolute; margin: auto; top: 0; left: 0; right: 0; bottom: 0; font: 0/0 a; width: 100px; height: 100px; transition: all 1s;
}
.a:before { content: " "; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 80px solid #389ea8; display: block; height: 0; width: 0; position: absolute; top: 0;
}
.a:after { content: " "; border-left: 45px solid transparent; border-right: 45px solid transparent; border-bottom: 72px solid #0e1d29; display: block; height: 0; width: 0; position: absolute; left: 5px; top: 5px;
}
.a:hover { transform: rotate3d(1, 2, 3, 180deg);
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <span class="a">A</span> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>

CSS Triangle Animation - Script Codes CSS Codes

body { background: #0e1d29; color: #389ea8;
}
.a { position: absolute; margin: auto; top: 0; left: 0; right: 0; bottom: 0; font: 0/0 a; width: 100px; height: 100px; transition: all 1s;
}
.a:before { content: " "; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 80px solid #389ea8; display: block; height: 0; width: 0; position: absolute; top: 0;
}
.a:after { content: " "; border-left: 45px solid transparent; border-right: 45px solid transparent; border-bottom: 72px solid #0e1d29; display: block; height: 0; width: 0; position: absolute; left: 5px; top: 5px;
}
.a:hover { transform: rotate3d(1, 2, 3, 180deg);
}
CSS Triangle Animation - Script Codes
CSS Triangle Animation - Script Codes
Home Page Home
Developer Adam Orchard
Username orchard
Uploaded December 02, 2022
Rating 3
Size 2,638 Kb
Views 14,168
Do you need developer help for CSS Triangle Animation?

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!

Adam Orchard (orchard) Script Codes
Create amazing Facebook ads 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!