Skip to content

Add auto-play-on-hover support to tp-slider  #95

Description

@nirav7707

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions