-
Notifications
You must be signed in to change notification settings - Fork 80
Completed Timeine onScroll Animation #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Completed Timeine onScroll Animation #42
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1- Remove the vs code file while making PR
2- Rename as Timeline_onScroll_Animation_01
3- In the child-container of before animation, you have done opacity 0 so all I could see was blank screen
4- Since your elements enlarges on scroll add a header text or something because that effect is not visible
…into Timeline_onScrollAnimation
1- Remove the vs code file while making PR 2- Rename as Timeline_onScroll_Animation_01
|
I have done some corrections . Can you check once again please @nandini7637 |
Abirpal202049
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the Readme file
bhaveyx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@bhavesh-chaudhari bro i checked it but it seems to be working properly . May be its an issue with screen height I guess. Can you please share me the screen height and width both at which things are getting messed ? and also the browser at which you checked. |
|
@Abirpal202049 Timeline Tech Stack Used
Preview2021-12-25.01-59-04.mp4 |
I think the issue is arising irrespective of the height. You can try checking responsiveness on some commonly used resolutions for devices like iphone, kindle fire, ipad, etc. I have checked on firefox and chrome. For ex:- Please do let me know if i am mistaken somewhere. My suggestion is to try making it look consistent on most standard resolutions for mobile and tabs, so that this component becomes a complete solution on such timeline design. Happy Coding ! |
| @@ -0,0 +1,19 @@ | |||
| window.addEventListener('scroll', () => { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try adding comments wherever possible so that it makes your code flow clear to the reader.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I will try to add comments
| let contentPosition = content.getBoundingClientRect().top; | ||
| let screenPosition = window.innerHeight; | ||
| contentPosition < screenPosition | ||
| ? content.classList.add('active') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid using ternary operator if possible since it makes the code difficult to read and understand
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So should i change it to normal if/else syntax or should add a comment there ?
@Ovenoboyo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preferably normal if-else
| @@ -0,0 +1,19 @@ | |||
| window.addEventListener('scroll', () => { | |||
| let contents = document.querySelectorAll('.child-container'); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use "const" instead of "let" wherever possible
| --green-light: #aff1b6; | ||
| } | ||
|
|
||
| header { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid styling html tags directly, Instead move these styles to a css class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those where just added for user demonstration of the slide animation . No worries i will add classes to them .
|
@bhavesh-chaudhari bro I am still not getting the issue i tried testing it in chrome mozilla and brave . I you are free any time we can get to discord server o discuss about this . 2021-12-27.20-58-29.mp4 |
|
@sohan9819 Hey this seems great 👍 ! Actually there was some issue with my browser settings. Sorry for the inconvenience ! I have added alt to the images which was missing everything else seems fine. Approving this pr, thanks for the contribution. |
|
@bhavesh-chaudhari no problem bro . Thanks for the help 👍 |
|
What is your P.Id @sohan9819 |
|
I didn't understand 😅 ? @Abirpal202049 |
|
Participent Id |
|
@Abirpal202049 sorry bro I dont know about participent id 😅. Can you tell me from where I can get it . |







Added the Timeline in Timelines folder .

Preview of the code .
2021-12-25.01-59-04.mp4