Skip to content

Commit 34c041b

Browse files
committed
docs: add multiple target trigger example and update demo page for v1.5.0
- Added example for data-triggle-target with multiple selectors (.box1, #id) - Updated Triggle.js demo page with latest working examples - Synced usage docs with new cssanimation.io-based presets
1 parent b9d0845 commit 34c041b

3 files changed

Lines changed: 1267 additions & 943 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ How it works
245245
246246
## Targeting Multiple Element
247247

248-
If you want to target multiple elements, separate them with commas in the `data-triggle-target=".box, #banner"` attribute:
248+
If you want to target multiple elements, separate them with commas in the `data-triggle-target=".box, #banner, #triggleTarget"` attribute:
249249

250250
```html
251251
<button
@@ -280,7 +280,7 @@ If you want to target multiple elements, separate them with commas in the `data-
280280

281281
How it works
282282

283-
- `data-triggle-target=".box, #banner"` – Selects multiple elements to animate.
283+
- `data-triggle-target=".box, #banner, #triggleTarget"` – Selects multiple elements to animate.
284284
- `data-triggle-class="ca__fx-fadeIn"` – The class that will be applied to the target when the trigger fires.
285285

286286
## Triggle Group Triggering

0 commit comments

Comments
 (0)