Wk-notes-01-13-npm-script-css-scroll
npm-scripts
scripts
attribute defines npm scripts, there are 2 types:
scripts as hook triggered after certain npm command:
postinstall
,prepublish
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
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
Was this helpful?