Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions Code/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,32 @@
<div class="t3">"Winners dont do <br> different things, <br> they do things <br> differently"</div>




<div class="card-container">
<div class="card" data-tilt>
<h2>Card 1</h2>
<p>Information about Card 1.</p>
</div>
<div class="card" data-tilt>
<h2>Card 2</h2>
<p>Information about Card 2.</p>
</div>
<div class="card" data-tilt>
<h2>Card 3</h2>
<p>Information about Card 3.</p>
</div>
</div>



<script src="Code/vanilla-tilt.min.js"></script>
<script>
VanillaTilt.init(document.querySelectorAll(".card"), {
max: 30,
speed: 400,
});


</script>



Expand Down
20 changes: 20 additions & 0 deletions Code/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,26 @@ body
background-attachment: fixed;
}

.card-container {
display: flex;
gap: 20px;
justify-content: center;
margin-top: 20px;
}

.card {
width: 200px;
height: 150px;
background-color: #f5f5f5;
border-radius: 10px;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
transition: transform 0.3s ease;
}

header
{
position: relative;
Expand Down