File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -98,21 +98,21 @@ options object as the second.
98
98
` document.body ` )
99
99
* Doesn't automatically fire, so you need to bind it to some other user
100
100
interaction. For example:
101
-
102
- $('button.scrollsomething').on('click', function() {
103
- $.smoothScroll({
104
- scrollElement: $('div.scrollme'),
105
- scrollTarget: '#findme'
106
- });
107
- return false;
108
- });
109
-
101
+ ``` js
102
+ $ (' button.scrollsomething' ).on (' click' , function () {
103
+ $ .smoothScroll ({
104
+ scrollElement: $ (' div.scrollme' ),
105
+ scrollTarget: ' #findme'
106
+ });
107
+ return false ;
108
+ });
109
+ ```
110
110
* The ` $.smoothScroll ` method can take one or two arguments.
111
111
* If the first argument is a number or a "relative string," the document is scrolled to that
112
112
position. If it's an options object, those options determine how the
113
113
document (or other element) will be scrolled.
114
114
* If a number or "relative string" is provided as the second argument, it will override whatever may have been set for the ` scrollTarget ` option.
115
- * The relative string syntax, introduced in version 2.1, looks like ` +=100px ` or ` -=50px ` (see below for an example).
115
+ * The relative string syntax, introduced in version 2.1, looks like ` " +=100px" ` or ` " -=50px" ` (see below for an example).
116
116
117
117
#### Additional Option
118
118
The following option, in addition to those listed for ` $.fn.smoothScroll ` above, is available
You can’t perform that action at this time.
0 commit comments