Skip to content

Commit

Permalink
3d
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian-Martinez-Rincon committed Feb 15, 2022
1 parent 66f3444 commit 569d01b
Show file tree
Hide file tree
Showing 6 changed files with 147 additions and 2 deletions.
25 changes: 25 additions & 0 deletions Estilos/Efecto3d/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>Cartas en 3d</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="box">
<h2 class="name">Product Name</h2>

</div>

</div>
<script src="/vanilla-tilt.min.js"></script>
<script>
VanillaTilt.init(document.querySelector(".box"), {
max: 25,
speed: 400
});
</script>
</body>
</html>
50 changes: 50 additions & 0 deletions Estilos/Efecto3d/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
*
{
margin: 0;
padding:0;
font-family: 'Poppins',sans-serif;
}
body
{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #131313;
}
.container
{
position: relative;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
width: 1200px;
transform-style:preserve-3d ;
}
.container .box
{
position: relative;
width: 300px;
height: 400px;
margin: 40px;
background: #232323;
border-radius: 20px;
transform-style:preserve-3d ;
}
.container .box::before
{
content: 'NIKE';
position: absolute;
top: 20px;
left: 20px;
font-size: 6em;
font-weight: 900;
color: #fff;
font-style: italic;
opacity: 0;
}
.container .box:hover::before
{
opacity: 0.4;
}
1 change: 1 addition & 0 deletions Estilos/Efecto3d/vanilla-tilt.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 21 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ <h5>Resoluciones</h5>
</div>

<div class="carousel-item">
<div class="binary_to_decimal2">
<div class="binary_to_decimal3">
<div class="container">
<h2>Punto Flotante Binario</h2>
<div class="field2">
Expand Down Expand Up @@ -440,7 +440,26 @@ <h5>Resultado</h5>
<script src="materialize.js"></script>
<script src="main.js"></script>
<script src="main2.js"></script>

<script src="./js/vanilla-tilt.min.js"></script>
<script>
VanillaTilt.init(document.querySelector(".binary_to_decimal"), {
max: 6,
speed: 7000
});
</script>

<script>
VanillaTilt.init(document.querySelector(".binary_to_decimal2"), {
max: 6,
speed: 7000
});
</script>
<script>
VanillaTilt.init(document.querySelector(".binary_to_decimal3"), {
max: 6,
speed: 7000
});
</script>



Expand Down
Loading

0 comments on commit 569d01b

Please sign in to comment.