Added hover effect and onClick event for marquee text #264
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
This PR introduces the following changes to the marquee text component:
1.Hover Effect: A hover effect has been added to the marquee text to improve user interaction. The text changes its appearance when hovered over, providing a more dynamic user experience.
2.onClick Event with Anchor Tag: The marquee text is now wrapped inside an anchor () tag. When clicked, the user is redirected to the cart.html page. The anchor tag also triggers the generation of a coupon code, which is displayed on the cart page.
Changes Made:
1.Added CSS to apply a hover effect on the marquee text.
2.Used an anchor () tag to handle the click event, redirecting the user to cart.html and generating a coupon code.
Screenshots/Recordings:
Uploading Added Hover Effect.mp4…
Please review the changes and let me know if there are any additional improvements or adjustments required.