Svg transform-origin - firefox working
How do I make an svg transform-origin - firefox working?
What is a svg transform-origin - firefox working? How do you make a svg transform-origin - firefox working? This script and codes were developed by Jonathan Marzullo on 11 August 2022, Thursday.
Svg transform-origin - firefox working - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>svg transform-origin - firefox working</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <svg version="1.1" id="container" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 200 200" enable-background="new 0 0 200 200" xml:space="preserve"> <circle cx="100" cy="100" r="50" fill="lightgrey"/> <g class="fix"> <g class="animate-clockwise"> <rect id="rectangle" x="50" y="90" width="100" height="20" fill="red" /> <rect id="outline" x="50" y="90" width="100" height="20" fill="none" stroke-weight="2" stroke="black"/> </g> </g>
</svg> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/gsap/1.13.1/TweenMax.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Svg transform-origin - firefox working - Script Codes CSS Codes
body{ margin:0; padding:0;
}
svg { position: fixed; top: -160px; left: 0px;
}
svg .fix { -webkit-transform: translate(100px,100px); -moz-transform: translate(100px,100px); transform: translate(100px,100px);
}
svg rect { -webkit-transform: rotate(0) translate(-100px,-100px); -moz-transform: rotate(0) translate(-100px,-100px); transform: rotate(0) translate(-100px,-100px); -webkit-transform-origin: 50% 50%; -moz-transform-origin: 50% 50%; transform-origin: 50% 50%;
}
.animate-clockwise { -webkit-animation: clockwise 900ms infinite ease-out alternate; -moz-animation: clockwise 900ms infinite ease-out alternate; animation: clockwise 900ms infinite ease-out alternate;
}
@-webkit-keyframes clockwise { 0% { -webkit-transform: scale(0) rotate(0deg); } 100% { -webkit-transform: scale(1) rotate(360deg); }
}
@-moz-keyframes clockwise { 0% { -moz-transform: scale(0) rotate(0deg); } 100% { -moz-transform: scale(1) rotate(360deg); }
}
@keyframes clockwise { 0% { transform: scale(0) rotate(0deg); } 100% { transform: scale(1) rotate(360deg); }
}
Svg transform-origin - firefox working - Script Codes JS Codes
//var divRect,rectangle,inanimateRect;
//TweenMax.set("#outline",{transformOrigin:"50% 50% 0"});
//window.onload = function () { //TweenMax.to("#rectangle",.9,{startAt:{scale:.5, rotation:180,transformOrigin:"50% 50%"},rotation:0,scale:1, ease:Back.easeOut,yoyo:true,repeat:-1}); // TweenMax.to("#outline",.9,{startAt:{scale:.5, rotation:180,transformOrigin:"100px 100px"},rotation:0,scale:1,ease:Back.easeOut,yoyo:true,repeat:-1});
//};
Developer | Jonathan Marzullo |
Username | jonathan |
Uploaded | August 11, 2022 |
Rating | 3 |
Size | 2,284 Kb |
Views | 101,200 |
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 |
CSS Filter Test - Grayscale | 2,250 Kb |
GSAP Animate CSS background-position | 2,427 Kb |
CSS Opacity - GSAP | 2,008 Kb |
CSS Opacity using autoAlpha - GSAP | 2,045 Kb |
Zoom in an image and show a div on hover | 1,876 Kb |
Lava Lamp Style Menu using GSAP - Hover Events | 2,490 Kb |
GSAP Carousel | 2,814 Kb |
IE10 and above preserve-3d workaround | 2,260 Kb |
Typing Effect using CSS3 Animation | 1,598 Kb |
GSAP test 2 - IE10 preserve-3d workaround | 3,037 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 |
Pomodoro Timer | Sdas13 | 2,900 Kb |
A Pen by Kevin | Kevinkenger | 2,642 Kb |
CardMove | Thompsonemerson | 3,699 Kb |
A Pen by Alex Bergin | Abergin | 3,347 Kb |
JavaScript constructors | Simboonlong | 2,415 Kb |
Fixed Scrolling Nav Bar | Philsinatra | 0 Kb |
Owl Carousel - jumpTo | OwlFonk | 2,553 Kb |
Simple checkbox style | Vncnz | 2,628 Kb |
Formations | Cantelope | 5,731 Kb |
Pure CSS Tooltips | Mobius1 | 2,271 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!