Skip to content

Commit

Permalink
finalizacion de las cards
Browse files Browse the repository at this point in the history
  • Loading branch information
nrptech committed Feb 19, 2024
1 parent 5f5af02 commit 022e95f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
10 changes: 10 additions & 0 deletions css/infantil.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,14 @@ body {

.card-shadow {
box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.6);
}
.card:hover {
transform: scale(1.1);

transition: transform 0.3s;
}


.card {
transition: transform 0.3s;
}
2 changes: 2 additions & 0 deletions educacioninfantil.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
<link rel="stylesheet" href="/css/infantil.css" />
<script defer src="js/bootstrap.bundle.js"></script>
<script defer src="js/hidden.js"></script>
<script defer src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
<script defer src="js/infantil.js"></script>
<title>Educacion Infantil</title>
</head>

Expand Down
11 changes: 11 additions & 0 deletions js/infantil.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
$(document).ready(function () {
// Aplica el efecto de agrandamiento al hacer hover en las tarjetas con la clase .card
$('.card').hover(
function () {
$(this).css('transform', 'scale(1.1)');
},
function () {
$(this).css('transform', 'scale(1)');
}
);
});

0 comments on commit 022e95f

Please sign in to comment.