Question about upcoming 6.6 release and working with GSAP

Hello Charlie,

It has been a while hope all is fine over there.

I have a question about the upcoming version, what I understand this new version will output straight HTML. Will this also influence for example when using with GSAP?

I’m working on a new project and am using Pro, unfortunately I have noticed before and notice again now that when using GSAP and Pro, I’m getting a different outcome/behavior as when creating the same elements and animations with Codepen.

Even when I use a Raw element and literally pasting the same HTML in this element the behavior is not the same as in Codepen.

Ofcourse it can be that I’m doing things wrong but as far as I’m aware I’m not.

Have a look at the following 2 links to see the differences in behavior:


https://camping-lestrexons.com/devlesstage/animated-web2-2-2/

What I have tried to improve the behavior is:

Working with native Pro elements instead of the RAW content element.
Working with the Blank stack to reduce ‘bloat’
Disabling all plugins
Enabling and disabling Litespeed caching
Setting my PHP properties high, memory limit etc. (working with PHP version 8.2)
Loading the scripts in Head, Footer, Init

Unfortunately all of this didn’t help. Hoping for some good news as I would like to build this project using Pro.

Thanks!

Been too long my friend.

The HTML output will mostly be for other plugins to read. The element rendering to page will primarily stay the same. As a result I’m not sure out of box you’ll be okay in your instance.

There a couple of warnings in your console. This should have an id as introLogo. Does it have that ID in Cornerstone, is it missing in the Raw Content element, or did the Raw content element strip it?

image

There’s a couple more as well. I would probably recopy paste the HTML portion of that codepen and see if that helps.

When using Cornerstone for something like this. You are going to want to utilize IDs to associate with GSAP. I haven’t played around with GSAP much, but it should be possible to do everything with Cornerstone. Site looks very good minus a few little issues. Let me know if this helps and have a great day.

image

Hey Charlie thanks for getting back at this :slight_smile: . It looks like I added the wrong link, indeed the ID ‘introLogo’ was missing on the link I send you earlier, here is a link without any missing selectors: https://camping-lestrexons.com/devlesstage/animated-web2-2/

Here everything is mostly working now. There is still just one difference that I can’t seem to figure out, when using the Duckduckgo browser for mobile (I know this is not a very widely used browser but still I would like to have as much as possible things to look good on any browser) the animation is flickering especially after the initial play. This is not happening in my Codepen example, I just have really no clue why this is happening.

I already tried to optimize for mobile and also switching off resource heavy tweens for mobile but I’m not able to fully get the flickering away (again in my Codepen this is not happening).

Do you have any idea what can cause this?

And lastly I have noticed that when working in the Cornerstone code editors after some time, when clicking on a line, often the cursor jumps to another part, this can be quite annoying. I firstly thought that this was related to the Firefox browser so I switched yesterday to Brave, but I start to notice now that also here I’m getting the same thing that my cursor jumps.

As always, thanks for looking into things!

Wish you a great day also!

1 Like

With the duckduckgo browser I don’t think I was seeing the same flickering you were referring too. I would try to turn off transitions for your overlay element as it seemed to blink to the color black. Or set the overlay as black as the default color. I think that might be related to your issue. I also saw your post in the facebook group, are you already good here?

What browser are you using for the code editor cursor jumps?

Hey Charlie, as usual it is mostly user mistakes, I figured out a way to get rid of the flickering, basically I was scaling the entire SVG which turned out to be very heavy, animating the viewBox attribute is the way to go in this case. The other flickering you most likely saw was because of other issues I’m trying to figure out.

For my modals I’m indeed all good.

Now for the code editor it is much heavier noticeable in the Firefox browser but also happens in the Brave browser.

Some other things I have noticed is that (all happening when no hard refresh is done for a long time);

That sometimes when adding/correcting code that instead of being able to add a character in between a word, that instead of adding this character, it ‘eats’ up the next character.

Although this seems all like minor issues it sucks when you need to refresh the browser since then you lose your history state which can be problematic when debugging.

Since I’m at it :slight_smile:
Another thing that I notice regularly is when you selected something in the code editor, but selected not the exact part and you want to correct it by clicking the correct part and select it by dragging, this doesn’t work, instead you are getting a what seems to be a paste option (but that also isn’t pasting)

And then a feature request, is it possible to add an autocomplete option?

Thanks Charlie.

Cheers!

One more thing regarding the code editor, when I change an ID in my CSS the whole page is freezing up and I have to reload the page.

What I mean is this:

I have an ID of ‘#example’ when I want to change it by pressing backspace until only ‘#’ is left, the whole page freezes up, it looks like this only happens when the ID already has some styling set to it, so typing a new ID in the editor from scratch doesn’t cause the page to freeze up.

Selecting the existing ID and pasting in another also doesn’t cause this freeze up.

Cheers.

Glad that issue is resolved. Very cool page you have there.

Yeah I’m just not getting the same results in the code editor as you. I’ll keep my eye out for other users having this issue and see if I can get this to happen. I can take the feature request for autocomplete. It probably wouldn’t be as advanced as using the VS code editor in Cornerstone so I would probably think about holding off till we decided what we’re going to do to solve that.

Have a great weekend.

1 Like

Thanks for the compliment Charlie! :slight_smile:

Whenever one of the things happens in the code editor I will make a video. But just to be clear, you are also not able to replicate the ID issue?

No need to be as advanced as VScode, but for example the plugin I talked to you about before Advanced Scripts has a build in Autocomplete, something like that would be already awesome.

Anyway, wish you a great weekend also!