File tree Expand file tree Collapse file tree
components/containers/RevealContentContainer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,4 +164,5 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
164164 - SubmitButton
165165 - AuthorBio
166166 - BlogPostsContainer
167+ - RevealContentContainer
167168- Updated ContactUsForm's checkbox wrapper from div to label to enhance its accessibility
Original file line number Diff line number Diff line change 1+ @use ' @/styles/mixins' as * ;
2+
3+ .sectionHidden {
4+ opacity : 0 ;
5+ transform : translateY (8rem );
6+ }
7+
8+ .revealContainerWrapper {
9+ @include transition (transform 1s , opacity 1s );
10+ }
Original file line number Diff line number Diff line change 11import { useEffect , useState } from 'react' ;
22import { useIntersect } from '@/hooks/useIntersect' ;
3- import S from './styles ' ;
3+ import styles from './RevealContentContainer.module.scss ' ;
44
55const RevealContentContainer = ( { children } ) => {
66 const [ ref , entry ] = useIntersect ( { } ) ;
@@ -15,9 +15,16 @@ const RevealContentContainer = ({ children }) => {
1515 } , [ entry . isIntersecting ] ) ;
1616
1717 return (
18- < S . RevealContainerWrapper ref = { ref } $hiddenStyle = { hiddenStyle } >
18+ < div
19+ ref = { ref }
20+ className = {
21+ hiddenStyle
22+ ? `${ styles . revealContainerWrapper } ${ styles . sectionHidden } `
23+ : styles . revealContainerWrapper
24+ }
25+ >
1926 { children }
20- </ S . RevealContainerWrapper >
27+ </ div >
2128 ) ;
2229} ;
2330
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments