-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathanimationss.html
More file actions
68 lines (58 loc) · 1.61 KB
/
animationss.html
File metadata and controls
68 lines (58 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Jadooo</title>
<style>
* {
margin: 0;
padding: 0;
}
.container {
background-color: rgb(252, 109, 109);
height: 455px;
margin: 10vh 10vw;
}
#box1 {
border: 2px solid black;
transform: translate(10px, 10px) scaleX();
transform-origin: left;
}
#img1 {
margin: 10px 10%;
height: 400px;
width: 600px;
transform: rotateX(10deg);
transition-property: width height;
transition-duration: 1s;
/* transition-timing-function: steps(4, jump-end); */
transition-timing-function: cubic-bezier(0.1, 0.7, 1, 0.1);
}
#img1:hover {
height: 300px;
width: 500px;
}
#bt1 {
width: 40px;
height: 30px;
transition-property: width height;
transition-duration: 0.5s;
}
#bt1:hover {
width: 50px;
height: 40px;
}
</style>
</head>ś
<body>
<div class="container">
<div id="box1">
Hello
</div>
<input id="bt1" type="button" value="Click">
<br><br>
<img src="https://buffer.com/cdn-cgi/image/w=1000,fit=contain,q=90,f=auto/library/content/images/size/w1200/2023/10/free-images.jpg" alt="image1" id="img1">
</div>
</body>
</html>