Jump to content

Embedding responsive "Sprite Spin" into the site

Recommended Posts

Site URL: https://www.ground-studios.com/test

Hi
I'm a CG Artist, no Web coder.
I try to implement an interactive spinning animation of an object onto my site, but struggle with the mobile appearance.
The Embed Block I use is responsive in width, but not in height. Due to this  there is a lot of space between the blocks in mobile mode. I'm wondering if there is a way to do it? Please check the submitted URL, were i set up a testsite.

Thanks in advance
Michael

Link to comment
  • Replies 1
  • Views 581
  • Created
  • Last Reply
20 hours ago, DerPapa said:

Site URL: https://www.ground-studios.com/test

Hi
I'm a CG Artist, no Web coder.
I try to implement an interactive spinning animation of an object onto my site, but struggle with the mobile appearance.
The Embed Block I use is responsive in width, but not in height. Due to this  there is a lot of space between the blocks in mobile mode. I'm wondering if there is a way to do it? Please check the submitted URL, were i set up a testsite.

Thanks in advance
Michael

I helped you create custom css for the responsive iframe, it will display iframe in ratio 1:1, add this into Design->Custom css

#block-yui_3_17_2_1_1616417833934_5454 .sqs-block-content,
#block-yui_3_17_2_1_1616417678756_5198 .sqs-block-content {
    height: 0 !important;
    padding-top: 100%;
    overflow: visible;
}
#block-yui_3_17_2_1_1616417833934_5454 .sqs-block-content iframe,
#block-yui_3_17_2_1_1616417678756_5198 .sqs-block-content  iframe {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
}

image.thumb.png.b96a547522826b20a4d7db7080955a93.pngThe text #block-yui_3_17_2_1_1616417833934_5454 - #block-yui_3_17_2_1_1616417678756_5198 are unique id of the block, you can get your real one using this extension Chrome Web Store - Extensions (google.com)

 

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.