Jump to content

How to make a video a hot link to another page in website

Go to solution Solved by Beyondspace,

Recommended Posts

Hello,

My client would like to have an animation of a spinning newspaper as the first page people see when on the site. When it stops spinning, she would like people to click on the video so that it leads them to another page of the site (aka the "home" page).

Is this possible? Would I have to export the video animation from AdobePremierePro a certain way to do this?

Note: The entire site has a background image that remains constant due to a custom code. Would this also effect the coding of having a code to make a video a hot link?

Thank you!

Below are sketches showing what she has in mind:

 

Screenshot 2023-02-16 at 11.59.34 AM.png

NewspaperSpinImg.png

NewspaperSpinImg_withbkgd.png

Link to comment
  • Replies 3
  • Views 231
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution
3 hours ago, taknee said:

Hello,

My client would like to have an animation of a spinning newspaper as the first page people see when on the site. When it stops spinning, she would like people to click on the video so that it leads them to another page of the site (aka the "home" page).

Is this possible? Would I have to export the video animation from AdobePremierePro a certain way to do this?

Note: The entire site has a background image that remains constant due to a custom code. Would this also effect the coding of having a code to make a video a hot link?

Thank you!

Below are sketches showing what she has in mind:

 

Screenshot 2023-02-16 at 11.59.34 AM.png

NewspaperSpinImg.png

NewspaperSpinImg_withbkgd.png

With the basic css code for personal plan, You can try the following trick

1. Add an image block which allow you to add a link on it, so you can click on it to direct to the page you want

 

2. Make it small on editor

image.thumb.png.4871981eb5073cd0c021a19dfdd86298.png

3. Use the following code on Home > Design > Custom Css to spin and scale your image block

#block-yui_3_17_2_1_1676381170030_3394 {
  animation: 1s forwards appear;

}
@keyframes appear {
  from {
    transform: scale(1) rotate(360deg);
    -webkit-transform: scale(1) rotate(360deg);
  }

  to {
    transform: scale(6) rotate(-360deg);
    -webkit-transform: scale(6) rotate(-360deg);
  }
}

 

#block-yui_3_17_2_1_1676381170030_3394 is the image block that you can use the following extension  to get it: Squarespace ID Finder

How to get block id: https://recordit.co/kUIH4uco0b

Press 👍 or mark this answer as solution to help another one too

Edited by Beyondspace

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

@Beyondspace Thank you so much for the help! The code works great!

The only problem I seem to be facing now is the quality of the image. The PNG file I made in Illustrator appears pixelated/blurry after the animation runs. Would you have any idea on why this is happening? I embedded an image of the newspaper from Google into the file and the text "In the NYT who knew" is from the text feature in Illustrator. However, the file image as a whole after spinning is pixelated/blurry. 

Screenshot2023-02-17at12_55_32PM.thumb.png.c642493189b00f455e96dc9b3c2d34c9.png

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.