Skip to content

simpart/mofron-comp-dragframe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mofron-comp-frame-card

install

npm install mofron-comp-frame-card

sample

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);
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published