Giter Site home page Giter Site logo

framer-snippets-library's Introduction

Framer Snippets

I built this library to compliment the included snippets library in Framer. These snippets focus on repeated actions and include as little code as possible. It should be quite helpful to beginners who are learning the basic behaviors of Framer, but it should be also be helpful to more experienced users when used as shortcuts.

alt tag

Actions

A variety of common actions.

  • Click
  • Keydown
  • Touch Start
  • Touch Move
  • Touch End

Animate

A variety of common animation starters. Including scale, opacity, and position. Customize to your needs.

  • Opacity
  • Position
  • Scale
  • Dimensions
  • Rotation
  • With Delay

Trigger On End

Included are two ways to trigger an animation on the end of another animation. The formal one should be used when you intend on reusing the animations, the casual one can be used for one off triggering.

Repeating

This snippet allows you to create an infinite loop of two animations. The 'Halt' snippet will stop the repeating animation.

Slow Motion

This will allow you view your prototypes in slow motion to more finely tune your animations.

Drag

  • Start
  • Move
  • End
  • Postion

Use these to trigger events from drag actions. Position reports back the current drag position, use it to trigger events when you drag an object into a trigger area.

Layers

  • Sub Layer
  • Video Layer
  • Destroy Layer

Layer Properties

Use these to effect your layers.

  • Blur
  • Border
  • Center
  • Circle Shape
  • HTML
  • Image
  • Name
  • Saturation
  • Shadow
  • Style
  • Place Before & Behind
  • Bring To Front & Send To Back

Flow Component

Use these to create a flow.

  • Flow Component
  • Show Next/Previous
  • Show Next (No transition)
  • Show Overlay Center/Left/Right/Notif
  • Footer and Header

State

Use these to setup states.

  • Define States
  • State Cycle
  • If Current State name is x then y
  • Animation Options

Scroll

Position

Reports back scroll position. You can use this to trigger events that need to occur at certain positions of a scrollLayer.

Direction Lock

Locks scrolling to one direction at a time

Velocity

Reports back velocity of scroll.

Simple Click and Touch

  • Click
  • Touch Start
  • Touch Move
  • Touch End

Very simple click and touch listeners. Use Click when you want immediate feedback. Touch allows more control over the touch event, but has a small delay.

Other

Delay Utility

Delays anything.

Device Check

Checks to see what device the project is being run on.

Project Setup Example

An organized way to set up your projects.

Spring

  • Fast
  • Loose
  • Slow
  • Variables Setup

Some starter springs. The variable setup allows you to create reusable springs. Place this at the beginning of your file.

Follow me

Twitter: charliedeets

Facebook: robotsecret

framer-snippets-library's People

Contributors

awt2542 avatar robotdestroy avatar

Watchers

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