Jump to content
Search Community

unni

Members
  • Posts

    22
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. i want the project-container infront of the marquee-container. how to do that ?
  2. very helpfull . and the useGSAP() hook is good.
  3. but when i remove the setTimeout, i get gsap-core.js:92 GSAP target .project-heading not found. Element not found: .project-heading i changed to exactly like in your code but still. https://stackblitz.com/edit/stackblitz-starters-48lpow?description=The React framework for production&file=app%2Fpage.tsx&title=Next.js Starter
  4. i am trying to pin a heading but it works fine on codepen but its not working correctly in my next js . what i am trying to do is in this video . This is the next js demo next js demo https://stackblitz.com/edit/stackblitz-starters-48lpow?file=app%2Fpage.tsx if anyone knows please help. 2023-12-01-11-18-31-e6oi2ucb-yfwqujhp_7E7I5TX0.mp4
  5. This is very helpfull thank you.
  6. minimal demo can you please help me with this demo the section2 should overlap the section1 when scrolling. this is a next js project so its hard to show that codepen . thats why i created this codepen. if you guys want to see the original project . i will try .
  7. minimal demo https://codepen.io/unni-krishnan-the-vuer/pen/BaMOxEL
  8. https://codepen.io/unni-krishnan-the-vuer/pen/BaMOxEL can you please help me with this demo the section2 should overlap the section1 when scrolling
  9. i want like in this website https://matthisgarnier.webflow.io/
  10. I don't want the section 3 to overlap in section 3
  11. i want to pin the section1 ( the first section) and when scroll the others should overlap the section1 . how to do that ? all sections are not same height .
  12. i want a automatic marquee exactly which works like html marquee tag. if anyone know please help.
  13. i need a smooth scrolling . but when i set SmoothScroll it gives an error which is Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/gsap_all.js?v=27ad7a06' does not provide an export named 'ScrollSmoother' this is my code import React, { useLayoutEffect } from 'react'; import gsap from 'gsap'; import { ScrollToPlugin } from 'gsap/all'; import { ScrollTrigger } from 'gsap/all'; import { ScrollSmoother } from 'gsap/all'; gsap.registerPlugin(ScrollToPlugin, ScrollTrigger,ScrollSmoother); import "./Navbar.css" function Navbar() { useLayoutEffect(() => { let ctx = gsap.context(() => { ScrollSmoother.create({ smooth: 1 }); }); return () => ctx.revert(); }, []) const toHome = () => { gsap.to(window, { scrollTo: 0, scrollBehavior: "smooth",ease: "power2.inOut" }); }; const toAbout = () => { const aboutPage = document.getElementById("page2"); gsap.to(window, { scrollTo: aboutPage.offsetHeight * 2, scrollBehavior: "smooth" }); }; const toPortfolio = () => { const portfolioPage = document.getElementById("page3"); gsap.to(window, { scrollTo: portfolioPage.offsetHeight * 4, scrollBehavior: "smooth" }); }; const toMySkills = () => { const skillPage = document.getElementById("page4"); gsap.to(window, { scrollTo: skillPage.offsetHeight * 6, scrollBehavior: "smooth" }); }; const toContact = () => { const contactPage = document.getElementById("page5"); gsap.to(window, { scrollTo: contactPage.offsetHeight * 8, scrollBehavior: "smooth" }); }; return ( <div className="navbar"> <div className="portfolio-container"> <h1>Portfolio</h1> </div> <div className="nav-links-container"> <ul> <li className='nav-link' onClick={toHome}>Home</li> <li className='nav-link' onClick={toAbout}>About</li> <li className='nav-link' onClick={toPortfolio}>Portfolio</li> <li className='nav-link' onClick={toMySkills}>My Skills</li> <li className='nav-link' onClick={toContact}>Contact</li> </ul> </div> </div> ) } export default Navbar
×
×
  • Create New...