Wk-notes-01-13-npm-script-css-scroll

npm-scripts

scripts attribute defines npm scripts, there are 2 types:

  1. scripts as hook triggered after certain npm command: postinstall, prepublish

  2. scripts defined only for npm run SCRIPT_NAME

    You can use any bash script for the script value. Say, a conditional script:

scroll-snap-type

Ref: https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-snap-type

Defines how strictly snap points are enforced on the scroll container in case there is one.

  • none

  • x mandatory

  • x proximity

Last updated