Skip to content

Conversation

@sohan9819
Copy link
Contributor

Added the Timeline in Timelines folder .
Preview of the code .
Priview_timeline

2021-12-25.01-59-04.mp4

Copy link
Member

@nandini7637 nandini7637 left a 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

Reference:
Opacity 0:
image

Opacity 1 but no scroll area:
image

@nandini7637 nandini7637 added SWoC This is exclusive for SWoC participants. Swoc Lv2 labels Dec 25, 2021
1- Remove the vs code file while making PR
2- Rename as Timeline_onScroll_Animation_01
@sohan9819
Copy link
Contributor Author

I have done some corrections . Can you check once again please @nandini7637

Copy link
Member

@Abirpal202049 Abirpal202049 left a 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

Copy link
Collaborator

@bhaveyx bhaveyx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work ! But it seems like the component becomes irresponsive below 900px. Kindly try fixing it.

image

@thepranaygupta thepranaygupta linked an issue Dec 26, 2021 that may be closed by this pull request
@sohan9819
Copy link
Contributor Author

@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.

@sohan9819
Copy link
Contributor Author

@Abirpal202049
Added README.md
Preview of Readme >>

Timeline

Tech Stack Used

html5 css3 javascript

Preview

2021-12-25.01-59-04.mp4

@bhaveyx
Copy link
Collaborator

bhaveyx commented Dec 27, 2021

@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.

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:-

image

image

image

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', () => {
Copy link
Member

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.

Copy link
Contributor Author

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')
Copy link
Member

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

Copy link
Contributor Author

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

Copy link
Member

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');
Copy link
Member

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 {
Copy link
Member

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

Copy link
Contributor Author

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 .

@sohan9819
Copy link
Contributor Author

@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

@bhaveyx
Copy link
Collaborator

bhaveyx commented Dec 27, 2021

@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.

@sohan9819
Copy link
Contributor Author

@bhavesh-chaudhari no problem bro . Thanks for the help 👍

@Abirpal202049 Abirpal202049 merged commit 507eac1 into Dezenix:main Dec 28, 2021
@thepranaygupta thepranaygupta removed their request for review December 28, 2021 06:06
@Abirpal202049
Copy link
Member

What is your P.Id @sohan9819

@sohan9819
Copy link
Contributor Author

I didn't understand 😅 ? @Abirpal202049

@Abirpal202049
Copy link
Member

Participent Id

@sohan9819
Copy link
Contributor Author

@Abirpal202049 sorry bro I dont know about participent id 😅. Can you tell me from where I can get it .

@sohan9819 sohan9819 deleted the Timeline_onScrollAnimation branch January 4, 2022 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Swoc Lv2 SWoC This is exclusive for SWoC participants.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Animated Event Timeline

6 participants