Blog, Website & Page Publishing

CStegh
Member

zoom in on image

SOLVE

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!

 

0 Upvotes
1 Accepted solution
Oezcan
Solution
Top Contributor | Diamond Partner
Top Contributor | Diamond Partner

zoom in on image

SOLVE

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


check
Did my post help answer your query? Help the Community by marking it as a solution

View solution in original post

webdew
Guide | Diamond Partner
Guide | Diamond Partner

zoom in on image

SOLVE

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.

0 Upvotes
Oezcan
Solution
Top Contributor | Diamond Partner
Top Contributor | Diamond Partner

zoom in on image

SOLVE

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


check
Did my post help answer your query? Help the Community by marking it as a solution

DSylvester
Member

zoom in on image

SOLVE

where do you add this code?!

0 Upvotes
TiphaineCuisset
Community Manager
Community Manager

zoom in on image

SOLVE

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 !


0 Upvotes