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

Added animation to FillArrow #335

Merged
merged 5 commits into from
Oct 23, 2023
Merged

Added animation to FillArrow #335

merged 5 commits into from
Oct 23, 2023

Conversation

lawtlee
Copy link
Contributor

@lawtlee lawtlee commented Oct 20, 2023

Added the animation of left to right in
FillArrow. The logic can be copied over to
other .scss files if you want to animate the background.

Summary

Closes #163

  • Added animation from left to right
  • Prompted GPT For this:
    • I want to use CSS to animate the color of a div from left to right, i have this snippet of code that changes the color
      of the div but it changes it in the entirety. Can i use this code to achieve my goal?
      @Keyframes example {
      from {background-color: red;}
      to {background-color: yellow;}
      }
  • Also made it so that it animates when it is in the viewport

Screenshots

Screen.Recording.2023-10-20.at.12.09.21.AM.mov

Added the animation of left to right in
FillArrow. The logic can be copied over to
other .scss files if you want to animate the background.
@lawtlee lawtlee requested a review from Dankco October 20, 2023 07:10
@netlify
Copy link

netlify bot commented Oct 20, 2023

Deploy Preview for parcel-pointers ready!

Name Link
🔨 Latest commit f89a4a5
🔍 Latest deploy log https://app.netlify.com/sites/parcel-pointers/deploys/6536c367886be500087eb228
😎 Deploy Preview https://deploy-preview-335--parcel-pointers.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.


.reset {
position: relative;
// left: 5rem;
Copy link
Contributor

Choose a reason for hiding this comment

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

rm

return (
<>
<div ref={ref} className="overall-container">
<VscDebugRestart className="reset" onClick={() => setAnimate(false)} />
Copy link
Contributor

@Dankco Dankco Oct 22, 2023

Choose a reason for hiding this comment

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

Let's remove this button because its kind of buggy and doesn't really feel good to click to see the animation again. Let's just have the animation loop automatically instead, like a GIF.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can't seem to animate it like a gif but i removed the button. Probably will look into it at another date

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, I can take a look as well, but I will ticket.

@lawtlee lawtlee requested a review from Dankco October 23, 2023 03:06
Copy link
Contributor

@Dankco Dankco left a comment

Choose a reason for hiding this comment

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

Looks good, will ticket looping the animation.

@Dankco Dankco merged commit a05b027 into main Oct 23, 2023
5 checks passed
@Dankco Dankco deleted the 163_ColorAnimation branch October 23, 2023 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minor Update: Add css animation to image in Lesson 2 Page 2
2 participants