i get some compiling errors, maybe the version has updated a bit
@jhlagado112 күн бұрын
absolutely fantastic stuff. i've just spent a week working exactly this. i should have come here first! great solution. thanks!
@TheirSavior15 күн бұрын
Explained well and answered the questions before I could ask. You rule!
@insightvideos8Ай бұрын
Awesome tutorial!
@klemenivanusicАй бұрын
const svg = document.querySelector('svg.squiggle'); const path = svg.querySelector('path'); // Get the total length of the path const pathLength = path.getTotalLength(); // Initialize the path to be hidden path.style.strokeDasharray = `${pathLength}`; path.style.strokeDashoffset = `${pathLength}`; const scroll = () => { const distance = window.scrollY; const totalDistance = document.body.clientHeight - window.innerHeight; const percentage = distance / totalDistance; // Animate the strokeDashoffset to reveal the path path.style.strokeDashoffset = `${pathLength * (1 - percentage)}`; }; // Run the scroll function on page load to set initial values scroll(); // Add the scroll event listener window.addEventListener('scroll', scroll); This is the better version of the code. Try it. Path basically starts from 0 when page is loaded and it is not drawn yet, and when you reach the bottom of the page, the path reaches it's 100% length. It works even if you set it's boundaries to a specific container, just set the environment for the path in the totalDistance variable
@thomas76ch10 күн бұрын
Thanks, with you svg works really well. I try it only with a straight line. It is not as smooth as on your example... and the result is reverse! Is there any info how to solve this issue?
@sheershaАй бұрын
Anyway to add this effect to youtube header?
@VictorGurov-o9oАй бұрын
A great tutorial, thank you! And of course: "Cube!" :)
@everydayslang-6452 ай бұрын
Really great. Easy to follow. Works like a charm... but what if you wanted more than one video like this on a page?
@stevevoltmer29642 ай бұрын
What about responsiveness? If you have content on the page and resize the window the SVG resizes, but not the content. You end up with the path moving over important content.
@thailonlucasart2 ай бұрын
I discovered your videos today! They are amazing!!!
@stevevoltmer29642 ай бұрын
How would you do this using the intersectionObserver API instead of scroll?
@monicaalyssa71952 ай бұрын
Thank you! This was super helpful!!!!
@AmieDesign_20222 ай бұрын
Thanks for the video, would love to know what font is it at the beginning of the video, thx!!
@ganeshbhandarkar60743 ай бұрын
where to download superhi editor
@PlantitaLabs3 ай бұрын
Thanks so much! Had been procrastinating adding on-scroll animations to my html/css website because I thought it would take longer to learn, but you made this sooo simple for me to learn and implement! ty ty
How can we add a toggle button for users to switch between light and dark modes manually, instead of relying on their system preferences?
@TakashiHirakawa-v4x3 ай бұрын
What are the reasons that you use <a> tag for the handle?
@maazahsan18003 ай бұрын
Cna anyone work on the section look like video effect section in lusion website?
@Jake-dq2xw3 ай бұрын
This was fantastic thanks!
@i1r9e9n7e3 ай бұрын
Hi! Thanks for the tutorial but I'm having some issues when it comes to upload images on the web editor. I think it's not working propertly uploading documents :S
@i1r9e9n7e3 ай бұрын
And also window.pageYOffset it's deprecated now :S
@SteveHart2823 ай бұрын
How do you achieve the gradient they have on Lusion using an SVG? Great video!
@mig84474 ай бұрын
What about multi-panel resizing (3 or more)
@JosephM1M5A44 ай бұрын
Thank you!
@Goeinavund4 ай бұрын
Such an underated channel you deserve way more subscribers, I will always love the way you explain these complex matter into easy to understand concepts. keep doing what ur doing its awesome!
@jmg95094 ай бұрын
I wish you would’ve shown if it was responsive...
@ShrutikaSh4 ай бұрын
i tried, this i works, love it, but how to make it smoot, the video playing is kind of choppy :(
@aminemajdi12484 ай бұрын
Thank you very much
@CoderDalower4 ай бұрын
Very helpful video. Thanks a lot
@clangsison4 ай бұрын
learned a lot from this tutorial, thank you!
@gilsonconceicao52015 ай бұрын
Very nice. Thanks
@jv-wd4po5 ай бұрын
hey so i have an issue when there is a border-radius applied on the shapes. They appear huge on the site. Do you know any fix for this?
@Pywyoyuyp5 ай бұрын
Thank you so much, I really enjoyed this tutorial. But I have a problem and that is when I scroll to the bottom of the page , when the line finishes drawing itself, it disappears. When I scroll a little up, it is again there, scrolling itself backways as it should. but i don't want it to disappear from my view. How to fix this?
@jesperandreassen1205 ай бұрын
Great video! How would you go about having the animation "bounce" the end of the stroke when the user stops scrolling?
@yashgaurav84995 ай бұрын
cube🧊
@cats_in_disguise5 ай бұрын
cube!
@playinhertz6 ай бұрын
Your portfolio is really amazing. Can you make a video on how you made it . Pls much requested
@riteshkc8146 ай бұрын
thanks been scratching my head for hours to implement a design 🥴🥴
@安田胡桃6 ай бұрын
Thank you so much!!! This help a lot
@Strix_sqli6 ай бұрын
i dont think they did it with svg on their website
6 ай бұрын
Nice video, however it does not look good on mobile viewport
@SarahSCampos6 ай бұрын
Thank you so much, that was exactly what I needed!
@MrAbbo117 ай бұрын
you are an excellent teacher and clearly a very smart man as you distill things in a way that is easily accessible. Thank you!
@mikefrancis94247 ай бұрын
This was awesome - thank you! I had a lot of fun repurposing this for a remix app!
@RatedPR7 ай бұрын
This is amazing, exactly what I was trying to learn to do, really good explanations too, will subscribe
@asifreza237 ай бұрын
Thank you so so so so so so so so so so so so so so so much!!!!
@sadohkoo7 ай бұрын
Super helpful video, thanks!
@jennyvan24097 ай бұрын
this is amazing, there are not alot of videos on youtube that covers creative coding ideas as like urs so thank you sm for this!! can i ask if i wanted to replace the panels by purely images in divs that can be draggable, resize and stackable, is it possible to approach this idea in reference to your video? thanks in advance:)
@MillerThriller8 ай бұрын
Can this be replicated into wix studio? I’ve been trying to figure this out forever! Any help is greatly appreciated and compensated if needed.