Skip to content
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

Electrical pop-art scroll driven animation #73

Closed
zoepje opened this issue Dec 2, 2024 · 6 comments
Closed

Electrical pop-art scroll driven animation #73

zoepje opened this issue Dec 2, 2024 · 6 comments

Comments

@zoepje
Copy link

zoepje commented Dec 2, 2024

I want to implement this on the webinarpage where the background changes

@zoepje zoepje moved this to Todo in Oncollaboration Dec 2, 2024
@zoepje zoepje moved this from Todo to In Progress in Oncollaboration Dec 2, 2024
@zoepje zoepje self-assigned this Dec 2, 2024
@zoepje
Copy link
Author

zoepje commented Dec 2, 2024

Electrical pop-art

Image

  • Bright colours (neon)
  • Background patterns (mostly pocadots)
  • Cartoon style

@zoepje
Copy link
Author

zoepje commented Dec 3, 2024

Wireflow

Image

On desktop since the nav is at the top you will see the previous pattern on there. Also the patters move a bit.

@zoepje
Copy link
Author

zoepje commented Dec 3, 2024

Breakdown schetsen

image image

Purple HTML
Blue CSS

zoepje added a commit to itsValyria/Oncollaboration that referenced this issue Dec 5, 2024
zoepje added a commit to itsValyria/Oncollaboration that referenced this issue Dec 5, 2024
zoepje added a commit to itsValyria/Oncollaboration that referenced this issue Dec 5, 2024
zoepje added a commit to itsValyria/Oncollaboration that referenced this issue Dec 5, 2024
fdnd-agency#73 so that we can animate the on colors there
zoepje added a commit to itsValyria/Oncollaboration that referenced this issue Dec 5, 2024
@zoepje
Copy link
Author

zoepje commented Dec 5, 2024

I added an animation to change the background color of the cards when you scroll, by using a custom property that changes in the animation. If you want the colours to flow into the next on you have to use @property with inherits: true; this way the browser knows that this property can change. I used scroll(self inline) on the carrousel so that when you scroll trough it the colours change.

https://github.com/itsValyria/Oncollaboration/blob/d2351b14c0cb43a32f258cf08b3895afd7299e2a/static/css/global.css#L90-L112

https://github.com/itsValyria/Oncollaboration/blob/d2351b14c0cb43a32f258cf08b3895afd7299e2a/src/routes/%2Bpage.svelte#L72-L77

https://github.com/itsValyria/Oncollaboration/blob/d2351b14c0cb43a32f258cf08b3895afd7299e2a/src/routes/webinars/%2Bpage.svelte#L32-L37

zoepje added a commit to itsValyria/Oncollaboration that referenced this issue Dec 5, 2024
zoepje added a commit to itsValyria/Oncollaboration that referenced this issue Dec 5, 2024
zoepje added a commit to itsValyria/Oncollaboration that referenced this issue Dec 5, 2024
@zoepje
Copy link
Author

zoepje commented Dec 5, 2024

I also added a shake animation to the webinarcards on the webinarspage. Every card has a delay on it. I used the index of the loop and gave that to a custom property --index. With the index I calculated the delay calc(var(--index) * 0.3s)

https://github.com/itsValyria/Oncollaboration/blob/c9bf99262d0658e801c7eb9cc0380f49f5e13559/src/routes/webinars/%2Bpage.svelte#L19-L23

https://github.com/itsValyria/Oncollaboration/blob/39ffc5860218aa1760b931beccaf74599fb76a71/src/routes/webinars/%2Bpage.svelte#L44-L73

@Ryank2004 Ryank2004 moved this from In Progress to Done in Oncollaboration Dec 9, 2024
@Ryank2004 Ryank2004 closed this as completed by moving to Done in Oncollaboration Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

2 participants