Debrief-2 | zoom effect advanced
This commit is contained in:
parent
741f1d0e2d
commit
615f25c88d
4 changed files with 7 additions and 7 deletions
4
public/css/preload-front.css
vendored
4
public/css/preload-front.css
vendored
|
|
@ -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;
|
||||
|
|
|
|||
2
public/js/preload-front.js
vendored
2
public/js/preload-front.js
vendored
|
|
@ -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++) {
|
||||
|
|
|
|||
4
resources/js/frontend/custom.js
vendored
4
resources/js/frontend/custom.js
vendored
|
|
@ -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++) {
|
||||
|
|
|
|||
4
resources/sass/frontend/_carrousel.scss
vendored
4
resources/sass/frontend/_carrousel.scss
vendored
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue