Coder Social home page Coder Social logo

awt2542 / framer-viewnavigationcontroller Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chriscamargo/framer-viewnavigationcontroller

2.0 2.0 0.0 2.18 MB

A simple controller for FramerJS that allows you to transition between views with just a couple lines of code.

License: MIT License

CoffeeScript 1.39% JavaScript 97.82% CSS 0.60% HTML 0.18%

framer-viewnavigationcontroller's Introduction

framer-viewNavigationController

A simple controller for FramerJS that allows you to transition between views with just a couple lines of code.

Features

  • Built in method for transitioning between views.
  • Multiple transitions built in (fade, slide, flip + more)
  • Customize the movement by providing animationOptions
  • Automatically saves history when switching view
  • Automatically plays the transition backwards when calling .back()
  • Magic move! Layers sharing the same name will tween between its .frame values.

Setup

  • add the module your modules folder and add

    {ViewNavigationController} = require 'ViewNavigationController'

to the top of your project

  • Create a new instance of the controller and set the initial view

    Views = new ViewNavigationController initialView: myLayer

  • Add interactivity

    myLayer.on Events.Click, -> Views.pushIn mySecondLayer mySecondLayer.on Events.Click, -> Views.magicMove myThirdLayer

Supported transitions

  • .switchInstant
  • .slideIn
  • .slideInLeft
  • .slideInRight
  • .slideInDown
  • .slideInUp
  • .fadeIn / .crossDissolve
  • .fadeInBlack
  • .zoomIn
  • .zoomedIn
  • .flipIn / .flipInRight
  • .flipInLeft
  • .flipInUp
  • .spinIn
  • .pushIn / .pushInRight
  • .pushInLeft
  • .moveIn / .moveInRight
  • .moveInLeft
  • .moveInUp
  • .moveInDown
  • .modal
  • .magicMove

framer-viewnavigationcontroller's People

Contributors

awt2542 avatar

Stargazers

Alex Raduca avatar  avatar

Watchers

 avatar 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.