Skip to content

Commit 0b23569

Browse files
committed
cleanup(comments): Improved for clarity.
1 parent 3411a77 commit 0b23569

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scrollReveal.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ window.scrollReveal = (function( window ) {
334334
})
335335

336336
/**
337-
* Build config object from defaults and element
337+
* Build default config object, then apply any
338338
* overrides parsed from the data-sr attribute.
339339
*/
340340
config = extend( config, self.config )
@@ -344,13 +344,13 @@ window.scrollReveal = (function( window ) {
344344
if ( config.enter == 'left' || config.enter == 'right' ) config.axis = 'X'
345345

346346
/**
347-
* Make sure to check for our custom hustle easing
347+
* Make sure to check for our custom hustle easing.
348348
*/
349349
if ( config.easing == 'hustle' ) config.easing = 'cubic-bezier( 0.6, 0.2, 0.1, 1 )'
350350

351351
/**
352352
* Let’s make sure our our pixel distances are negative for top and left.
353-
* e.g. "move 25px from top" starts at 'top: -25px' in CSS.
353+
* e.g. "enter top and move 25px" starts at 'top: -25px' in CSS.
354354
*/
355355
if ( config.enter == 'top' || config.enter == 'left' ) config.move = '-' + config.move
356356

0 commit comments

Comments
 (0)