Jump to content

SVGator animation to Code Block

Recommended Posts

Hi,

I did an javascript animation in SVGator. It is in 1:1 format ... but when I paste the code in CODE block the format changes. It seems like SQSP adds blanc space under the image and changes the height of the section. 
Does anyone have the same problem or a solution?

A Html programmer I got to help me could not solve the problem.

Attached is a screenshot with explaination.

https://app.svgator.com/

has sample animations in 1:1 format

Thanks, hope someone can help:)

Orn Smari

Added blanc space.png

Edited by Clover
Link to comment
  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Add this to Custom CSS:

html.squarespace-damask .sqs-blockStatus {
    display: none !important;
}

It should hide the warning messages and allow you to correctly size the block.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Hi Ziggy!
thanks for your input. 

I put that code in Custom CSS, it lifted the "Script Disabled" and the frame is shorter but still not 1:1. It might be enough to work. Hope so:)

Thanks!

Orn Smari  

Link to comment
On 2/12/2023 at 8:40 PM, Clover said:

Thanks!

the link is: https://chihuahua-magenta-ypjc.squarespace.com/animation-test

passw: 20sitting23

 

Best 

Orn Smari

You mean remove this blank?

image.thumb.png.018a7bb3c93be0593fec4c9f0bb47ad5.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 2/15/2023 at 9:13 PM, Clover said:

 

Thanks !

Yes, exactly,

There is always a large blanc space added below the image so I can´t have the Section height smaller than the image frame, that should be in 1:1 format.

 

Added blanc space 2.png

You can consider using Classic Editor Section for this case

classic.png

Or add this into Code Block

<style>
  .fe-63e8e9ff4f34bb4d295b8548 {
    grid-template-rows: repeat(5,minmax(calc(var(--container-width) * var(--row-height-scaling-factor)), auto)) !important;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 2 weeks later...

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.