Skip to content

Instantly share code, notes, and snippets.

View antonkartashov's full-sized avatar

Anton Kartashov antonkartashov

  • Orenburg, Russia
View GitHub Profile
icon = new Layer
y: 60
maxX: Screen.width - 40
scale: 0.2
borderRadius: 10
backgroundColor: "white"
layer = new Layer
backgroundColor: Utils.randomColor()
height: 223
if Utils.isDesktop() is true
HTMLPreviewBackground = new Layer
backgroundColor: "#2d383e"
HTMLPreview = Screen
Screen = new Layer
width: 750
height: 1334
clip: true
bg = new Layer backgroundColor: "#2d383e"
phoneScreen = new Layer
width: 750
height: 1334
clip: true
backgroundColor: "black"
(window.onresize = ->
phoneScreen.center()
# http://share.framerjs.com/jb2h1vh54qvn/
pagesA = new PageComponent
size: Screen.size
scrollVertical: false
page = []
dots = []
for i in [0..10]
dots[i] = new Layer
# http://share.framerjs.com/idckyu31ficw/
new BackgroundLayer
arrow = new Layer
width: 20, height: 700
backgroundColor: "tomato"
borderRadius: 10
circle = new Layer
# http://share.framerjs.com/ie30ezuuf9jd/
new BackgroundLayer
backgroundColor: "#aaa"
spinner = new Layer
width: 20
height: 100
backgroundColor: "blue"
borderRadius: "50%"
screens = new ScrollComponent
width: 360
height: 640
x: 0
y: 0
scrollVertical: false
backgroundColor: "black"
scrnCont = new ScrollComponent
backgroundColor: "blue"
# Положить файл в папку вашего проекта (Untitled.framer)
# http://antonkartashov.ru/framer/photos.json
data = JSON.parse Utils.domLoadDataSync "file.json"
string = "Connection with your friends"
cursor = new Layer
backgroundColor: "blue"
width: 2
height: 40
text = new Layer
width: 1, height: 100
backgroundColor: ""
document.body.style.cursor = "auto"