Question:
[Is there any way to unlock Velo and the event handlers present in Javascript?]
Product:
[Wix Studio]
What are you trying to achieve:
[I wanted to create a text marquee effect that has access to wheel event. The text marquee will be moving in the default state, When it is scrolled down we can find the element deltaX properties and make the animation timeline move X position.I wonder if I can also use tl.play() and tl.reverse() ]
What have you already tried:
[There are alot of things that are missing and I couldnt unlock it to full potential. Tried Velo Code with window events and wheel events which are unsupported]
Additional information:
[Iframe method works but I’m not willing to put html inside another html blocks and bloat the site ]
Hi, @Pradeep_Kumar !!
The wheel event can be captured from within a custom element. 
@onemoretime In Custom element I think we can’t customize the font-family
Use Iframe Element.
!Pass the Data from backend for data safety!
I frames are not good for maintaining responsiveness. It Creates a scroll bar when the height and width are specified
I include Google Fonts or Adobe Fonts CDN links directly in my custom code and use the loaded fonts within my custom elements!
If I remember correctly, I did it this way because fonts couldn’t be imported inside custom elements when using Shadow DOM. 
1 Like
I am trying to load custom font which doesn’t have a cdn link. I am uploading the font directly to wix studio. link of font: PP Monument - A Powerful Grotesk Sans Family - Free to Try Font – Pangram Pangram Foundry
So, does that mean you’re still having trouble? 
Unfortunately Yeah !! Need a way to load up custom fonts without the cdn, By using @font-face method because wix studio doesn’t support custom fonts access inside the shadow dom
As I mentioned earlier, fonts loaded via a CDN in your custom code should be usable inside custom elements. That’s right. If you have a GitHub account, you might be able to create your own personal CDN using GitHub Pages. For reference, I’ve done this before with CSS files, but I haven’t tried it with font files, so I can’t say for sure whether it will work. Still, it’s a pretty convenient method once you know it, so it might be worth trying.
If I remember correctly, when you publish files this way, they can automatically be served via jsDelivr’s fast CDN because of its integration with GitHub. If that works, you should be able to load the font in your custom code and then just specify the font family name within your custom element to use it.
P.S.
Actually, come to think of it, I believe you can also find the URL of fonts used on a Wix page by inspecting it in your browser’s developer tools—that might be an even simpler option. But I’m not entirely sure if that still works reliably. 
Personally, if the first method I mentioned works for you, I think that would be the cooler approach. Let me know if you manage to get it working! 
1 Like
Thanks!! I try it out and asap