Debrief-2 | zoom effect advanced

This commit is contained in:
Sebastien Hattry 2022-03-07 12:09:03 +01:00
parent 741f1d0e2d
commit 615f25c88d
4 changed files with 7 additions and 7 deletions

View file

@ -5597,10 +5597,10 @@ input[type=text]{
overflow:hidden;
}
.jumbotron img{
transition:scale 0.3s ease-in-out;
transition:transform 0.3s ease-in-out;
}
.jumbotron img.zoomed{
scale:1.05;
transform:scale(1.05);
}
.jumbotron .item__title{
position:absolute;

View file

@ -354,7 +354,7 @@ docReady(function () {
var imgZoom = document.querySelectorAll('.img-zoom');
var index = 0;
if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
if (document.body.scrollTop > 50 || document.documentElement.scrollTop > 50) {
document.getElementById("backtotop").style.display = "flex";
for (index = 0; index < imgZoom.length; index++) {

View file

@ -15,8 +15,8 @@ docReady(function () {
let imgZoom = document.querySelectorAll('.img-zoom');
let index = 0;
if (
document.body.scrollTop > 100 ||
document.documentElement.scrollTop > 100
document.body.scrollTop > 50 ||
document.documentElement.scrollTop > 50
) {
document.getElementById("backtotop").style.display = "flex";
for (index = 0; index < imgZoom.length; index++) {

View file

@ -5,10 +5,10 @@
overflow: hidden;
img {
transition: scale 0.3s ease-in-out;
transition: transform 0.3s ease-in-out;
&.zoomed {
scale: 1.05;
transform: scale(1.05);
}
}
.item__title {