vorbert
-
Posts
6 -
Joined
-
Last visited
Content Type
Forums
Gallery
Blogs
Events
Store
Downloads
Profiles
Posts posted by vorbert
-
-
11 minutes ago, tuanphan said:
Try adding this to Design > Custom CSS
/* TEST CODE - first image */ body.homepage figure:nth-child(1):hover img { content: url(https://static1.squarespace.com/static/5e517bf6922842434f29db57/t/630910afc6df434175733c41/1661538493564/adam_can%27t_breathe+%28Original%29_1.gif); }
Hi @tuanphan,
Thank you for the code. It works very nicely on the image I'd like to use, but unfortunately this applies the same gif to the first picture of every section. (see http://norbertvarjasi.com)
Would there be a way to assign different gifs to the different jpg stills?
Many thanks,Norbert
-
Hi @tuanphan, Can I also have your help please?
My website is http://norbertvarjasi.comOn the mainpage, I have pictures in galleries for each of my projects. I'd like to have a short (1-5 seconds) gif or video when hovering these images. Here is a link for one of the gifs I made for the Lotus project just for testing: https://static1.squarespace.com/static/5e517bf6922842434f29db57/t/630910afc6df434175733c41/1661538493564/adam_can't_breathe+(Original)_1.gif
Can you please advise me about the code, and if It is better to use a gif or maybe an mp4 or other formats?
Many thanks,
Norbert
Hover gif animation on video
in Customize with code
Posted
Thank you! I just added it now, and it works well for the first image.