https://github.com/simpart/mofron-comp-dragframe
https://github.com/simpart/mofron-comp-dragframe
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/simpart/mofron-comp-dragframe
- Owner: simpart
- License: mit
- Created: 2017-05-18T07:42:23.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-12T08:27:04.000Z (almost 9 years ago)
- Last Synced: 2025-09-28T09:57:13.410Z (9 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mofron-comp-frame-card
# install
npm install mofron-comp-frame-card
# sample
```js
try {
let mf = require('mofron');
let Text = require('mofron-comp-text');
let Card = require('mofron-comp-frame-card');
require('mofron-effect-color');
require('mofron-effect-shadow');
new Card({
size : new mf.Param(35, 200),
addChild : new Text('Card'),
focusEffect : new mf.effect.Color({
color : new mofron.Param(
new mf.Color(255,255,255),
new mf.Color(57,133,150)
),
speed : 0.6
}),
hoverEffect : new mf.effect.Shadow({
value : 20,
speed : 0.6
}),
draggable : true,
visible : true
});
} catch (e) {
console.error(e.stack);
}
```