GithubHelp home page GithubHelp logo

michaelrando / enyo-smooth-panels Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maklesoft/enyo-smooth-panels

0.0 1.0 0.0 139 KB

Enyo panels kind that uses CSS3 animations instead of frame-by-frame Javascript animations

License: MIT License

JavaScript 84.97% CSS 15.03%

enyo-smooth-panels's Introduction

enyo-smooth-panels

SmoothPanels is an Enyo panels kind that uses CSS3 animations instead of frame-by-frame Javascript animations

Installation

If you are using the Bootplate application structure, the best way to include SmoothPanels in your app is to add it as a submodule to your libs folder.

git submodule add https://github.com/MaKleSoft/enyo-smooth-panels.git lib/smooth-panels

Then add the module to your package.json.

enyo.depends(
    ..
    "$lib/smooth-panels"
);

Usage

enyo.kind({
    name: "MyApp",
    components: [
        {kind: "SmoothPanels", components: [
            {name: "firstPanel"},
            {name: "secondPanel"},
            ...
        ]}
    ]
});

Published properties

{
    async: false, // If true, the in and out animations will be decoupled
    inAnim: "slideInFromRight", // Name of the CSS animation to use of the in animation
    outAnim: "slideOutToLeft", // Name of the CSS animation to use of the out animation
    duration: 500, // Duration to use for animations in ms
    easing: "ease" // Timing function to use for animations
}

Methods

select: function(panel, [inAnim], [outAnim])

Selects the specified panel, which needs to be an enyo.Control.

selectDirect: function(panel)

Selects a panel directly without any animation.

selectByIndex: function(index, [inAnim], [outAnim])

Selects a panel by its index.

getSelectedPanel: function()

Returns the currently selected panel.

getSelectedPanelIndex: function()

Returns the index of the currently selected panel.

enyo-smooth-panels's People

Contributors

maklesoft avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.