CSS Transitions and Transforms
Full Stack Web Development Courses with Real-time projects Start Now!!
Program 1
<html>
<head>
<style>
div{
width:200px;
height:200px;
background-color: red;
transition:width 2s,height 2s,transform 2s;
}
div:hover{
width:500px;
height:500px;
transform:rotate(150deg);
}
</style>
</head>
<body>
<div>
Some text
</div>
</body>
</html>
Your opinion matters
Please write your valuable feedback about DataFlair on Google

