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

Chaotic Feature: Feature add effects #210

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

Yash8077
Copy link
Contributor

Description

This pull request introduces the Color Splash component, providing a visually engaging effect on user clicks. Below is a summary of the changes made:

Changes Made

Color Splash Component:

  • Random Color and Effect Toggle: Created an interactive color splash effect where random bursts of color appear at the cursor on click, along with a randomized toggle between two effects: a color splash and a mirror shatter.
  • Mirror Shatter Effect: Added a triangular "shatter" animation that radiates outward to resemble broken glass when triggered.
  • Dynamic Placement and Animation: The effect particles originate from the cursor position and use CSS animations to fade out after appearing.

CSS Enhancements:

  • Dedicated Styling: Created a CSS file (ColorSplash.css) to define animations, including a splashAnimation for circular particles and shatterAnimation for triangular shards.
  • Animation Keyframes: Added keyframes for both animations to ensure smooth scaling, opacity transitions, and rotation of particles, enhancing visual appeal and immersion.

Testing

  • Effect Randomization: Verified that each click alternates between the splash and shatter effects with randomized colors and directions.
  • Animation Timing and Responsiveness: Confirmed animations work seamlessly on various screen sizes without affecting other components.
  • Performance: Ensured that animation and DOM updates do not cause lag or performance issues across different devices.

Related Issues

Closes #209 Color Explosion Effects

Preview

VID-20241031-WA0023.mp4

Copy link

vercel bot commented Oct 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
chaos-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 31, 2024 2:23pm

Copy link
Contributor

Thank you for submitting your chaotic pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our chaotic CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

🎉 Thanks @Yash8077! Your pull request has added more chaos to ChaosWeb. We’ll review it shortly. Keep breaking the rules! 🚀

@vansh-codes vansh-codes added enhancement New feature or request gssoc-ext GSSOC'24 Extd Participant level1 awards 10 points hacktoberfest-accepted hacktoberfest accepted chaos Chaotic update Reactv2 Implementing in React labels Oct 31, 2024
@vansh-codes vansh-codes merged commit fbbc301 into vansh-codes:main Oct 31, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chaos Chaotic update enhancement New feature or request gssoc-ext GSSOC'24 Extd Participant hacktoberfest-accepted hacktoberfest accepted level1 awards 10 points Reactv2 Implementing in React
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chaotic Feat: Color Explosion Effects
2 participants