diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..8ca7a4c --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +indent_style = space +indent_size = 2 +trim_trailing_whitespace = false +insert_final_newline = false diff --git a/readme.md b/readme.md index 4a07566..2cd7ddb 100644 --- a/readme.md +++ b/readme.md @@ -35,8 +35,8 @@ const scroll = getScrollSnapPositions( scrollingElement ); /* { - x: [ 0, 100, 150, 200 ], - y: [ 0, 200, 400, 600, 800 ], + x: [ 0, 100, 150, 200 ], + y: [ 0, 200, 400, 600, 800 ], } */ ``` @@ -52,16 +52,16 @@ const snap = getSnapPositions( scrollingElement ); /* { - x: { - start: [ 0, 100 ], - center: [ 300 ], - end: [ 500 ], - }, - y: { - start: [ 0 ], - center: [ 250, 500, 750 ], - end: [ 1000 ], - }, + x: { + start: [ 0, 100 ], + center: [ 300 ], + end: [ 500 ], + }, + y: { + start: [ 0 ], + center: [ 250, 500, 750 ], + end: [ 1000 ], + }, } */ ```