Component : tp-slider
Current Behavior:
The current version supports the auto-slide-interval attribute, which enables auto-play of slides at a given interval. However, it does not consider the slider's hover state. the slides will auto-play regardless of whether the user hovers over the slider.
Requirement:
Add support for a new attribute, auto-play-on-hover with the following functionality:
- When the user hovers over the slider, it should auto-slide at the specified interval.
- This functionality should work independently of
auto-slide-interval.
Priority Rules:
-
If both auto-slide-interval and auto-play-on-hover are enabled:
-
The auto-slide-interval should take precedence. As a result, the hover-based functionality (auto-play-on-hover) should be ignored.
Expected Outcome:
- auto-slide-interval: Continues to auto-slide at the set interval, unaffected by hover state.
- auto-play-on-hover: Enables hover-based auto-slide functionality.
Cc: @junaidbhura
Component : tp-slider
Current Behavior:
The current version supports the
auto-slide-intervalattribute, which enables auto-play of slides at a given interval. However, it does not consider the slider's hover state. the slides will auto-play regardless of whether the user hovers over the slider.Requirement:
Add support for a new attribute,
auto-play-on-hoverwith the following functionality:auto-slide-interval.Priority Rules:
If both
auto-slide-intervalandauto-play-on-hoverare enabled:The auto-slide-interval should take precedence. As a result, the hover-based functionality (auto-play-on-hover) should be ignored.
Expected Outcome:
Cc: @junaidbhura