This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Data, animate, Override, Animatable } from "framer"; | |
| const data = Data({ | |
| rotation: Animatable(0), | |
| buttonColor: Animatable("#EE45BA"), | |
| buttonScale: Animatable(1) | |
| }); | |
| let animation; | |
| export const SecondHandRotate: Override = () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Data, animate, Override, Animatable } from "framer"; | |
| const data = Data({ rotation: Animatable(0) }); | |
| export const SecondHandRotate: Override = () => { | |
| BeginRotateAnimation(); | |
| return { | |
| rotation: data.rotation, | |
| originY: 1 | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const data = Data({ left: Animatable(2), color: "#999" }); | |
| let isToggleOn = false; | |
| export const Toggle: Override = () => { | |
| return { | |
| left: data.left, | |
| background: data.color, | |
| onTap() { | |
| let leftValue = isToggleOn ? 2 : 28; | |
| animate.easeOut(data.left, leftValue, { duration: 0.25 }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Data, animate, Override, Animatable } from "framer"; | |
| const data = Data({ scaleValues: [] }); | |
| export const Scale: Override = props => { | |
| data.scaleValues.push({ id: props.id, scaleValue: Animatable(1) }); | |
| return { | |
| scale: getValueForId(props.id), | |
| onTap() { | |
| let valueToScale = getValueForId(props.id); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Data, animate, Override, Animatable } from "framer"; | |
| const data = Data({ scale: Animatable(1) }); | |
| const pulse = async () => { | |
| await animate(data.scale, 2).finished; | |
| await animate(data.scale, 1).finished; | |
| pulse(); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // FramerFinder.swift | |
| // fridge | |
| // | |
| // Created by Jay Stakelon on 1/1/16. | |
| // | |
| // | |
| import Foundation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| extension UIView { | |
| func createImage() -> UIImage { | |
| let rect: CGRect = self.frame | |
| UIGraphicsBeginImageContext(rect.size) | |
| let context: CGContextRef = UIGraphicsGetCurrentContext() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Add the following line to your project in Framer Studio. | |
| # `frameless = require "frameless"` | |
| frameless = {} | |
| # Directly opens the prototype in Frameless | |
| frameless.open = -> | |
| intent = "frameless://" | |
| url = intent + window.location.host + window.location.pathname + "/" | |
| window.location.replace url |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ActiveAdmin.register Collection do | |
| permit_params do | |
| permitted = [ | |
| :id, | |
| :abstract, | |
| :publish_date, | |
| :vertical_id, | |
| articles_attributes: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source 'https://rubygems.org' | |
| ruby '2.0.0' | |
| gem 'rails', '4.0.4' | |
| gem 'sass-rails', '~> 4.0.2' | |
| gem 'uglifier', '>= 1.3.0' | |
| gem 'coffee-rails', '~> 4.0.0' | |
| gem 'jquery-rails' | |
| gem 'turbolinks' | |
| gem 'jbuilder', '~> 1.2' | |
| gem 'bootstrap-sass' |
NewerOlder