#lmk some feedbacks & bugs if ther are any. Tryn...
1 messages · Page 1 of 1 (latest)
You win
my only complaint is that it is kind of laggy
and when it lags, it ruins the scroll animations
yeah ↑
But its just portfolio doesn’t matter that much
yeah
looks awesome, as a 17 year old, I am impressed. Maybe reduce the scroll time if possible.
oh and maybe showcase your projects, could also be lost and missed them.
Could you tell what package you used for the progressive scroll effect?
lags at ipad animation
whenever it does scale() for svg it buggy af
putitng them on separate page lol
no packages used at all. everything coded by hand 😭
tysmmm ❤️
❤️ ❤️
everything is vanilla js?
unfortunately yes 😭
makes it hard to adjust stuff tbh
should've done some research
its like this
export default function LivingInTianjin ({...props}) {
const {scrollY, windowHeight} = useContext(ScrollContext)
return <>
<div className={styles.primalContainer}{...props} style={{
opacity: scrollY > 7.7 * windowHeight ? 0 : (scrollY - windowHeight * 6.5 + windowHeight) / 100,
transition: '0.05s ease-out',
}}>
<TianjinLineArt farness={(scrollY - 6.5 * windowHeight) / 1000}/>
<Caption style={{
transform: `translateY(${-1 * Math.min((scrollY - 7 * windowHeight), 0)}px)`,
}} title={"TIANJIN, CHINA"} subtitle={"Tianjin was my new home. It was a bright and bustling city that truly never slept."}/>
</div>
<div className={styles.scrollContainer}/>
</>
}
btw, a cool animation would be the plane flying around the earth on scroll
honestly yeah that one doesnt have an anim. ill do that soon ty for the suggestion
after some more polishing hoping to sub 4 awwwards lol
cool stuff
but yeah i should've made it a little more modular than hardcoding the rel scroll values
super impresive considering they're libraries that make this easy
yeah how i coded it is criminal LOL using *windowheight
thats crazy
how is the window height mapped to svg movements?
Where's your work/projects?
its like slides i guess like it uses scrollY of window and divides it by window height to know which frame it should show
hard to explain but you can see how it is made here
a
Ok good. Is there a link to this page on the homepage? I didn't see it.
If not, this needs to be clear and obvious.
yes you're right. not linking currently bc still in dev but I have some navbars setup theyre just commented out for now
ah ok.
keep it up