Skip to content

Commit

Permalink
v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
d-oliveros committed Oct 21, 2015
1 parent 93834ad commit 3200a22
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ No jQuery required.
* Exposes a service that scrolls the window to an element's location
* Provides two directives that enable smooth scrolling to elements.
* Clean: No classes are added, no jQuery is required, no CSS files or configuration is needed.
* Scrolling within a custom container added in 1.7.3
* Scrolling within a custom container added in 2.0.0

# Installation

Expand Down Expand Up @@ -41,35 +41,35 @@ Example:
<div smooth-scroll></div>

// With options
<div smooth-scroll
duration="800"
easing="easeInQuint"
<div smooth-scroll
duration="800"
easing="easeInQuint"
offset="120"
callback-before="aFunction(element)"
callback-before="aFunction(element)"
callback-after="anotherFunction">
{{...}}
</div>

// Inside a custom container
<div smooth-scroll
duration="800"
easing="easeInQuint"
<div smooth-scroll
duration="800"
easing="easeInQuint"
offset="120"
callback-before="aFunction(element)"
callback-before="aFunction(element)"
callback-after="anotherFunction"
container-id="container-id">
{{...}}
</div>

// With condition
<div smooth-scroll
<div smooth-scroll
scroll-if="{{ myExpression }}">
{{...}}
</div>

// Inside ng-repeat
<div smooth-scroll
scroll-if="{{ $last }}"
<div smooth-scroll
scroll-if="{{ $last }}"
duration="2500">
{{...}}
</div>
Expand All @@ -83,13 +83,13 @@ Example:
```html

// Basic
<a href="#"
<a href="#"
scroll-to="my-element-3">
Click me!
</a>

// Custom containers
<a href="#"
<a href="#"
scroll-to="my-element-3"
container-id="custom-container-id">
Click me!
Expand All @@ -102,10 +102,10 @@ Example:
</div>

// With options
<button
scroll-to="elem-id5"
duration="1800"
callback-before="aFunction(element)"
<button
scroll-to="elem-id5"
duration="1800"
callback-before="aFunction(element)"
callback-after="anotherFunction">
Scroll to next page.
</button>
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngSmoothScroll",
"version": "1.7.4",
"version": "2.0.0",
"homepage": "https://github.com/d-oliveros/ngSmoothScroll",
"authors": [
"David Oliveros <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-smooth-scroll.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/angular-smooth-scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Influenced by Chris Ferdinandi
* https://github.com/cferdinandi
*
* Version: 1.7.4
* Version: 2.0.0
* License: MIT
*/

Expand Down

0 comments on commit 3200a22

Please sign in to comment.