1.0.1 • Published 4 years ago

ember-scroll-to-target v1.0.1

Weekly downloads
72
License
MIT
Repository
github
Last release
4 years ago

ember-scroll-to-target Build Status

Easy animated scrolling to target element.

Install

ember install ember-scroll-to-target

Usage

With label attribute:

{{scroll-to
 label='Click to scroll'
 target='#targetId'
 tagName='a'
 duration=1000
}}

With template block:

{{#scroll-to
 target='#targetId'
 tagName='a'
 duration=1000
}}
  Click to scroll
{{/scroll-to}}

Attributes

AttributeDefination
labelText displayed inside the component. Not required if block template is used. (Optional)
targetTarget element id. (Required)
tagnameTagname for the component template. (Optional)
durationScroll animation duration. Default is 500. (Optional)
offsetAdditional offset if required. (Optional)

Demo

Visit below ember twiddle for working demo.

https://ember-twiddle.com/21bb3d46c665718d8b78b5c036ad6529

Tests

cd tests/dummy
ember server
Open http://localhost:4200/tests
1.0.1

4 years ago

0.0.5

4 years ago

1.0.0

5 years ago

0.1.0

5 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago