mirror of
https://github.com/wahyd4/cdnjs.git
synced 2026-08-19 09:47:48 +10:00
e5304bdb6873d0fd8927ffa434404dcd58abe226
- Added new xPercent and yPercent special properties to CSSPlugin so that you can do percentage-based transforms in addition to px-based ones. Yes, you can combine them like {x:200, xPercent:-50}.
- Added support for document.querySelectorAll() as a fallback when a regular selector engine (like jQuery) isn't present. Previously, getElementById() was used, and it still is when document.querySelectorAll() isn't available.
- Significantly improved compatibility with AMD/RequireJS and CommonJS/Node/Browserify.
- Added "onAutoKill" callback to ScrollToPlugin so that you can have a function called when the user initiates a scroll in the middle of a tween.
- Worked around a very rare rounding issue on certain Microsoft devices that could cause a Draggable not to function properly.
- Fixed issue that could cause values in a timeline to render immediately AFTER its onComplete when a seek() is performed to the very end and the tween hadn't initialized yet (related to the "lazy" feature that defers rendering by default)
- Fixed bug that could cause easeParams not to work properly when the ease is passed as a string instead of a function.
- Fixed bug that could cause zero-duration tweens at the very beginning of a nested timeline not to return to their beginning values if the playhead of the parent timeline goes past the nested timeline's startTime, and then goes back to EXACTLY on top of the startTime, and then before it.
- Improved GC, protecting against a very particular scenario where a user writes bad JS code that maintains a reference to a timeline.
cdnJS Script Repository
The repository mirroring all scripts on cdnjs.cloudflare.com, created and maintained by Thomas Davis and Ryan Kirkman.
We will host any version of any library. Feel free to add a pull request for an older version of a library if your site still uses it.
Libraries must have notable popularity. 100 watchers on GitHub is a good example, but as long as reasonably popularity can be demonstrated the library will be added.
Extensions, Plugins, Resources
Extensions, Plugins, Resources
Pull requests steps
- Fork this repository
- Install all the needed dependencies locally (you will need
node):npm install
- Add your library (following the conventions of this repository)
- 1 commit per pull request
- 1 library per pull request
- The pull request must be tagged in the original repository (some exceptions apply)
- include a package.json in the npm format (see
test/schemata/npm-package.jsonfor details - it's very simple) - Run
npm testto check everything is ok
- Send us a pull request.
- Make sure you include in the pull description:
- Where you downloaded the script
- If it isn't clear, how you found the version of the script
- e.g. https://github.com/cdnjs/cdnjs/pull/541
- If the library doesn't already provide a minified version, our preferred minifier is UglifyJS
Running the validator
- Install all the needed dependencies locally (you will need
node):npm install - Run the test suite:
npm test
Languages
JavaScript
94.7%
CSS
5.3%
