This is a great tip! Actually Svelte does string interpolation automatically for us: we can add JavaScript expressions in curly braces. And we only need the translateY here. So here is a shorter version of the transform with the same effect: style:transform="translateY({scroll * speed}px)"
@ucielsola2 жыл бұрын
Amazing! Thanks so much. Your svelte/kit content is really amazing and very useful.
@pevey2 жыл бұрын
More Svelte. Thank you!
@rhysgray6302 жыл бұрын
More Svelte! Your videos are brilliant.
@RMCProductions2 жыл бұрын
Stupid simple. Love your videos! Thanks for the amazing free content
@dappinstitute2 жыл бұрын
Awesome brother. Thank you.
@DanielRios5492 жыл бұрын
Holy moly, this svelte:window is incredible simple, I didn't know that
@parthkadecha7492 Жыл бұрын
I want to start animation on particular div/section's Top. This is working from top of whole page. How can I do that?
@kyrregjerstad Жыл бұрын
This is awesome! But how would you implement this on an element that is not the header? If you don't want to manually offset the scrollY to where ever the element is on the page?
@HunterBBQ Жыл бұрын
Amazing
@djsnipa1 Жыл бұрын
Hell yeah! Nice!
@futotta-neko Жыл бұрын
This is why I should start reading documentations instead of searching for hours about a certain feature that I don't know the name 😅
@ch1caum2 жыл бұрын
Love svelte(kit) so much, sucks to use react for work =P
@justinoneill28372 жыл бұрын
Love it!
@maxencerobinet2445 Жыл бұрын
amazing
@yapayzeka2 жыл бұрын
brilliant
@rogadev2 жыл бұрын
That is crazy simple. I'm quickly putting Svelte over Vue in my ranking list. 🤔
@Adonsio2 жыл бұрын
awesome
@ShinSpiegel2 жыл бұрын
I'm a little disappointed with the result. But I love the content.
@syntaxfm2 жыл бұрын
Why disappointed with the result?
@alexsantana67672 жыл бұрын
@@syntaxfm I think @Jeferson Sin was thinking about a beautiful composition of images showing some sort of animation, including horizontal movement may be? Anyway, I really appreciate your work. Keep It up