We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Dec 28, 2021 6:30 PM
Hi,
Have you ever been on a blog or website where you hover or click on an image and it expands? Is that possible in a hubspot blog? If so, how, please? Thank you!
Solved! Go to Solution.
Jan 4, 2022 3:56 AM
Thank you @TiphaineCuisset for mentioned.
Hello @CStegh ,
for hover you can try something like this:
img {
transition:transform 0.25s ease;
}
img:hover {
-webkit-transform:scale(1.5); /* or some other value */
transform:scale(1.5);
}
and for klick you can try something like in this article from w3school.
Best regards,
Özcan
![]() | Did my post help answer your query? Help the Community by marking it as a solution |
Jan 5, 2022 3:07 AM
Hi @CStegh ,
I have found a post on our community forum here, which offers advice on how to implement this. It looks like you might want to create modal images with CSS and Javascript, there is a helpful guide here that outlines the process!
Hope this helps!
If we were able to answer your query, kindly help the community by marking it as a solution.
Thanks and Regard.
Jan 4, 2022 3:56 AM
Thank you @TiphaineCuisset for mentioned.
Hello @CStegh ,
for hover you can try something like this:
img {
transition:transform 0.25s ease;
}
img:hover {
-webkit-transform:scale(1.5); /* or some other value */
transform:scale(1.5);
}
and for klick you can try something like in this article from w3school.
Best regards,
Özcan
![]() | Did my post help answer your query? Help the Community by marking it as a solution |
Monday
where do you add this code?!
Jan 4, 2022 3:44 AM
Hi @CStegh
Thank you for reaching out.
I want to tag some of our experts on this - @tjoyce @JonPayne @Oezcan do you have any thought for @CStegh on this?
Thank you!
Best
Tiphaine
![]() | Saviez vous que la Communauté est disponible en français? Rejoignez les discussions francophones en changeant votre langue dans les paramètres ! Did you know that the Community is available in other languages? Join regional conversations by changing your language settings ! |