Rotate in CSS3 Transform

Size
2,013 Kb
Views
22,264

How do I make an rotate in css3 transform?

What is a rotate in css3 transform? How do you make a rotate in css3 transform? This script and codes were developed by Dang Van Thanh on 13 September 2022, Tuesday.

Rotate in CSS3 Transform Previews

Rotate in CSS3 Transform - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Rotate in CSS3 Transform</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <html>
<head>
<meta charset="utf-8" />
<title>Rotate - CSS3 Transform</title>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.9.1.js"></script>
<script src="https://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
</head>
<body> <div class="box"></div> <div class="control"> <p><code>.box { transform: rotate(<span class="x">0</span>deg)}</code></p> <div class="slider">Rotate <br><div id="rotate"></div></div> </div>
</body>
</html> <script src="js/index.js"></script>
</body>
</html>

Rotate in CSS3 Transform - Script Codes CSS Codes

* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
}
body { text-align: center;
}
.box { background-color: rgba(255, 20, 20, .5); display: inline-block; width: 200px; height: 100px;
}
.control { background-color: #f0f1f1; margin: 10px 0; padding: 10px; text-align: left;
}
.ui-slider { margin: 5px 0;
}

Rotate in CSS3 Transform - Script Codes JS Codes

$(function() { $('#rotate').slider({ range: 'min', min: -360, max: 360, value: 0, slide: refreshRotate, change: refreshRotate }); function refreshRotate() { var rotate = $('#rotate').slider('value'), x = $('.x'); x.html(rotate); $('.box').css('-webkit-transform', 'rotate(' + rotate + 'deg)'); }
});
Rotate in CSS3 Transform - Script Codes
Rotate in CSS3 Transform - Script Codes
Home Page Home
Developer Dang Van Thanh
Username dangvanthanh
Uploaded September 13, 2022
Rating 3
Size 2,013 Kb
Views 22,264
Do you need developer help for Rotate in CSS3 Transform?

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!

Dang Van Thanh (dangvanthanh) Script Codes
Create amazing video scripts 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!