Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ballet

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ballet - npm Package Compare versions

Comparing version 0.0.1-security to 0.0.1

lib/actors/actor.d.ts

63

package.json
{
"name": "ballet",
"version": "0.0.1-security",
"description": "",
"main": "index.js",
"version": "0.0.1",
"private": false,
"description": "The typescript library for scroll animation",
"main": "lib/index.umd.js",
"module": "lib/index.es.js",
"types": "lib/index.d.ts",
"files": [
"/lib/**/*"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"start": "npm run watch",
"test": "karma start --browsers Chrome",
"test:no-browser": "karma start --browsers ChromeHeadless --single-run",
"lint": "npx eslint .",
"clear:lib": "rm -rf ./lib",
"build": "npm run clear:lib && webpack --mode production",
"build:dev": "npm run clear:lib && webpack --mode development",
"watch": "webpack --watch --mode development",
"watch:prod": "webpack --watch --mode production",
"tsc:lib": "tsc --project tsconfig.lib.json",
"tsc:test": "tsc --project tsconfig.spec.json"
},
"repository": {
"type": "git",
"url": "git+https://github.com/npm/security-holder.git"
"url": "git+https://github.com/drKaramazin/ballet.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"keywords": [
"animation",
"scroll",
"effects",
"typescript"
],
"author": "Nikolay Grishkin",
"license": "MIT",
"bugs": {
"url": "https://github.com/npm/security-holder/issues"
"url": "https://github.com/drKaramazin/ballet/issues"
},
"homepage": "https://github.com/npm/security-holder#readme"
}
"homepage": "https://github.com/drKaramazin/ballet#readme",
"devDependencies": {
"@types/jasmine": "~4.3.1",
"@typescript-eslint/eslint-plugin": "~5.41.0",
"eslint": "~8.26.0",
"eslint-config-standard-with-typescript": "~23.0.0",
"eslint-plugin-import": "~2.26.0",
"eslint-plugin-n": "~15.3.0",
"eslint-plugin-promise": "~6.1.1",
"jasmine-core": "~4.6.0",
"karma": "~6.4.2",
"karma-chrome-launcher": "~3.2.0",
"karma-jasmine": "~5.1.0",
"karma-typescript": "~5.5.4",
"karma-typescript-es6-transform": "~5.5.4",
"ts-loader": "~9.2.7",
"typescript": "~4.8.4",
"webpack": "~5.70.0",
"webpack-cli": "~4.9.2",
"webpack-dev-server": "~4.7.4"
}
}

@@ -1,9 +0,61 @@

# Security holding package
# Ballet
The typescript library for scroll animation.
This package name is not currently in use, but was formerly occupied
by a popular package. To avoid malicious use, npm is hanging on to
the package name, but loosely, and we'll probably give it to you if
you want it.
[![NPM](https://nodei.co/npm/ballet.png)](https://nodei.co/npm/ballet/)
You may adopt this package by contacting support@npmjs.com and
requesting the name.
## Examples
[Click here to see all the examples](https://drkaramazin.github.io/ballet.site/)
## Module System Types
- ES6
- UMD
## Layout methods
- FixedActorsScene
```
const scene = new StickyPlatformScene(
document.getElementById('scene'),
(w, h) => h * 2,
);
```
Here is [an example](https://drkaramazin.github.io/ballet.site/fixed-actors-scene-demo.html) of using this method.
- StickyPlatformScene
```
const scene = new StickyPlatformScene(
document.getElementById('scene'),
(w, h) => h * 2,
);
```
This method also has an _offset_ and _stickyPlatformHeight_ options. To see an example of using these options [click here](https://drkaramazin.github.io/ballet.site/sticky-platform-scene-demo.html).
## Motions
- MoveMotion
- SizeMotion
- OpacityMotion
- BoundMotion
## Actors
- **StaticActor** should have MoveMotion, SizeMotion and OpacityMotion in its TimeFrame to calc start/end values. You can also set false into _initPosition_, _initSize_, _initOpacity_ to prevent this behavior:
```
const agenda = new StaticActor(document.getElementById('agenda'), {
initOpacity: false,
});
```
- **RefActor** doesn't change its coordinates and sizes.
## Built With
- Vanilla JS
- TypeScript
- webpack
## Author
- **Nikolay Grishkin** - Initial work - [GitHub](https://github.com/drKaramazin)
See also the list of [contributors](https://github.com/drKaramazin/ballet/graphs/contributors) who participated in this project.
## License
This project is licensed under the MIT License - see the [LICENSE](https://github.com/drKaramazin/ballet/blob/master/LICENSE) file for details.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc