Hello
i want to animate my image banners to “zoomed in/out” once appear like in this website:
https://www.kerenbartov.co.il/
how can I do that?
this is my website:
thanks!
A user seeks to implement a zoom in/out animation effect for image banners, similar to an example website they referenced.
Proposed Solution:
<div> or <figure> elements wrapping the imagesCSS Implementation:
position: relative and overflow: hidden to the banner containertransform, transition, and scale properties to create the zoom effecttransform: scale(1.2) to increase the image sizetransition: transform 0.5s for smooth animationThe discussion appears to be ongoing, with one technical response provided but the solution not yet fully implemented or confirmed by the original poster.
Hello
i want to animate my image banners to “zoomed in/out” once appear like in this website:
https://www.kerenbartov.co.il/
how can I do that?
this is my website:
thanks!
To animate your image banners with a “zoomed in/out” effect similar to the website you referenced, you can use CSS and JavaScript. Here’s an outline of the steps you can follow:
Prepare the HTML structure for your image banners. This could involve using <div> or <figure> elements to wrap the image.
Apply CSS styles to position and style the image banners. Set the initial size and position of the image to create the zoom effect. You can use CSS properties like transform, transition, and scale to achieve the desired effect. Here’s an example CSS code snippet:
.image-banner {
position: relative;
overflow: hidden;
}
.image-banner img {
transition: transform 0.5s;
}
.image-banner:hover img {
transform: scale(1.2); /* Increase the scale for a zoomed-in effect */
}