Search the Community
Showing results for tags 'white'.
-
ScrollTrigger crashes WordPress admin editor scripts when imported from node modules
Damien Chantelouve posted a topic in GSAP
Hi o/ I'm making this post mainly for reference to maybe help some others users which might encounter this issue (and also maybe for you GSAP). I did read the article / documentation about how to integrate GSAP into WordPress using WordPress methods which is a good thing but most devs build / handle directly their assets using a bundler and enqueue only their final build. As of right now (WordPress 6.6 / 6.7), if you use GSAP ScrollTrigger from import / node_modules (the CDN version works fine), and if you enqueue your final js build in editor hooks like "enqueue_block_editor_assets", it will break WordPress admin editor javascript somehow (i think it's related to some global variable clash) and result in a white screen mostly and a lot of console errors (see screenshots below) Code : WordPress admin "New post" page: The fix : load GSAP ScrollTrigger out of your js build using wp_enqueue_script and before enqueueing your js build using the same WordPress function (see how to load it correctly here) Hope this can help Have a good day, Damien-
- 2
-
-
- scrolltrigger
- wordpress
- (and 9 more)
-
I use TweenMax.to api to move images(chips) to position:x, y in table. And when tweening them, has many white space in the way they move. The white spaces appear in chrome, firefox(not in safari and mobile) They make me confuse and i dont know how to solve this. please help me. thank you very much I use as3, flashdevelop to dev, flex sdk 4.6 air 3.5. Flash player 14.0.