EventListenners
This commit is contained in:
@ -0,0 +1,55 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Fancy Smiley</title>
|
||||
<style>
|
||||
body {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
background-color: #f0f4f8;
|
||||
font-family: 'Arial', sans-serif;
|
||||
}
|
||||
|
||||
.smiley-box {
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: linear-gradient(135deg, #ffcc33, #ffdd55);
|
||||
border-radius: 50%;
|
||||
border: 10px solid #ffd700;
|
||||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
cursor:default;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.smiley {
|
||||
font-size: 150px;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.smiley-box:hover {
|
||||
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
|
||||
transform: scale(1.05);
|
||||
transition: all 0.3s ease-in-out;
|
||||
cursor:default;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="smiley-box" id="box">
|
||||
<div class="smiley">😊</div>
|
||||
</div>
|
||||
|
||||
<script src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user