mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-23 00:20:40 +07:00
remove opacity effect for hero section
This commit is contained in:
1 parent
437c996002
commit
6e221856a9
1 file changed
-2
@@ -123,7 +123,6 @@ const socialLinks = [
|
|||||||
export function Hero() {
|
export function Hero() {
|
||||||
const { scrollY } = useScroll()
|
const { scrollY } = useScroll()
|
||||||
const y = useTransform(scrollY, [0, 300], [0, -80])
|
const y = useTransform(scrollY, [0, 300], [0, -80])
|
||||||
const opacity = useTransform(scrollY, [0, 200], [1, 0.3])
|
|
||||||
return (
|
return (
|
||||||
<InView>
|
<InView>
|
||||||
<motion.section
|
<motion.section
|
||||||
@@ -137,7 +136,6 @@ export function Hero() {
|
|||||||
<HeroParticles />
|
<HeroParticles />
|
||||||
<motion.div
|
<motion.div
|
||||||
className="hero-content"
|
className="hero-content"
|
||||||
style={{ opacity }}
|
|
||||||
initial={{ opacity: 0, x: -30 }}
|
initial={{ opacity: 0, x: -30 }}
|
||||||
animate={{ opacity: 1, x: 0 }}
|
animate={{ opacity: 1, x: 0 }}
|
||||||
transition={{ duration: 0.6, delay: 0.2 }}
|
transition={{ duration: 0.6, delay: 0.2 }}
|
||||||
|
|||||||
Reference in new issue
Block a user