Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
722 additions
and 1 deletion.
- +4 −1 framer/Components/PageComponent.coffee
- +260 −0 framer/Components/PageComponent.js
- 0 test/studio/PageComponentCurrentPage.framer/images/.gitkeep
- 0 test/studio/PageComponentEvents.framer/images/.gitkeep
- 0 test/studio/PageComponentGrid.framer/images/.gitkeep
- 0 test/studio/PageComponentHorizontal.framer/images/.gitkeep
- 0 test/studio/PageComponentLockDirection.framer/images/.gitkeep
- 0 test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/Icon
- +31 −0 test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/app.coffee
- +12 −0 test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/coffee-script.js
- +10 −0 test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/config.json
- +126 −0 test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/framer.init.js
- +1 −0 test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/framer.js
- BIN test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/images/background.png
- BIN test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/images/cursor.png
- BIN test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/images/cursor@2x.png
- BIN test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/images/icon-120.png
- BIN test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/images/icon-152.png
- BIN test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/images/icon-76.png
- BIN test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/images/icon-arrow.png
- BIN test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/images/icon-arrow@2x.png
- BIN test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/images/icon-close.png
- BIN test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/images/icon-close@2x.png
- BIN test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/images/icon-framer.png
- BIN test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/images/icon-framer@2x.png
- BIN test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/images/icon-share.png
- BIN test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/images/icon-share@2x.png
- +196 −0 test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/mirror.css
- +44 −0 test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/style.css
- +1 −0 test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/framer/version
- 0 test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/images/.gitkeep
- BIN test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/images/framer-icon.png
- +37 −0 test/studio/PageComponentLockHorizontalDirectionExceptTopRow.framer/index.html
- 0 test/studio/PageComponentVertical.framer/images/.gitkeep
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
@@ -0,0 +1,31 @@ | ||
horizontalPages = 3 | ||
verticalPages = 4 | ||
|
||
pageComp = new PageComponent | ||
size: Screen.size | ||
directionLock: true | ||
|
||
verticalPCs = [] | ||
|
||
for horizontalPageIndex in [0...horizontalPages] | ||
for verticalPageIndex in [0...verticalPages] | ||
page = new Layer | ||
x: horizontalPageIndex * Screen.width | ||
y: verticalPageIndex * Screen.height | ||
size: Screen.size | ||
backgroundColor: "#28affa" | ||
superLayer: pageComp.content | ||
html: "#{horizontalPageIndex}:#{verticalPageIndex}" | ||
style: | ||
lineHeight: "#{Screen.height}px" | ||
textAlign: "center" | ||
fontSize: "240px" | ||
fontWeight: "100" | ||
fontFamily: "Helvetica Neue" | ||
|
||
pageComp.on Events.Move, (scrollOffset) -> | ||
if scrollOffset.y == 0 | ||
pageComp.scrollHorizontal = true | ||
else | ||
if pageComp.scrollHorizontal | ||
pageComp.scrollHorizontal = false |
@@ -0,0 +1,10 @@ | ||
{ | ||
"device" : "iPhone 5S Space Gray", | ||
"sharedPrototype" : 1, | ||
"deviceOrientation" : 0, | ||
"contentScale" : 1, | ||
"deviceType" : "fullscreen", | ||
"updateDelay" : 0.3, | ||
"deviceScale" : -1, | ||
"delay" : 0.3 | ||
} |
Oops, something went wrong.