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

Implement Rotate Left and Right Animations #15

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

lucasferreiralimax
Copy link
Member

This pull request introduces two new animations—rotate-left and rotate-right—for the UpWindowAngularComponent. These animations enhance the user experience by providing additional visual effects when the modal window is opened or closed.

Changes Made

  • Added CSS Animations:

    • Implemented the following animations in the SCSS file:
      • rotate-left: Rotates the window to the left.
      • rotate-right: Rotates the window to the right.
  • Updated AnimationComponent:

    • Added buttons to trigger the new rotate animations.
    • Implemented logic to open the window with the appropriate animation.
<button
  class="button-modal-example"
  type="button"
  (click)="openWindowExample('rotate-left')"
>
  Rotate Left
</button>
<up-window-angular
  [isOpen]="isWindowOpenRotateLeft"
  title="Rotate Left Window"
  subtitle="This window uses a rotate-left animation."
  animation="rotate-left"
>
  Rotate Left content!
</up-window-angular>

<button
  class="button-modal-example"
  type="button"
  (click)="openWindowExample('rotate-right')"
>
  Rotate Right
</button>
<up-window-angular
  [isOpen]="isWindowOpenRotateRight"
  title="Rotate Right Window"
  subtitle="This window uses a rotate-right animation."
  animation="rotate-right"
>
  Rotate Right content!
</up-window-angular>

Screen Video

rotate.mp4

@lucasferreiralimax lucasferreiralimax self-assigned this Oct 17, 2024
@lucasferreiralimax lucasferreiralimax linked an issue Oct 17, 2024 that may be closed by this pull request
4 tasks
@lucasferreiralimax lucasferreiralimax merged commit 8e59564 into master Oct 17, 2024
1 check passed
@lucasferreiralimax lucasferreiralimax deleted the rotate-animation branch October 17, 2024 07:00
Copy link

Visit the preview URL for this PR (updated for commit 728c221):

https://up-window-angular--pr15-rotate-animation-gjlq0fmq.web.app

(expires Thu, 24 Oct 2024 07:01:01 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 7822e0d6e40bbbcb5ceaa0eda2c38488d7b613f8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Rotate Left and Rotate Right Animations
1 participant