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
| # Set imageA states | |
| photos.imageA.states.add | |
| large: | |
| y: 300 | |
| width: 750 | |
| height: 533 | |
| normal: | |
| sepia: 0 | |
| brightness: 100 | |
| contrast: 100 |
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
| # Create a background layer with background color #73a7f4 | |
| new BackgroundLayer | |
| backgroundColor: "#73a7f4" | |
| # Create a default animation spring curve | |
| # with values of your choice | |
| Framer.Defaults.Animation = | |
| curve: "spring(200,10,0)" |
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
| # Set default animation | |
| Framer.Defaults.Animation = | |
| curve: "ease" | |
| time: 0.3 | |
| # 加上背景 | |
| new BackgroundLayer | |
| backgroundColor: "#d1e377" | |
| # 建構雲朵 |
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
| Framer.Defaults.Animation = | |
| curve: "ease" | |
| time: 0.3 | |
| # 加上背景 | |
| new BackgroundLayer | |
| backgroundColor: "#d1e377" | |
| # Create an empty clouds array | |
| # clouds = [] |
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
| navMenu = new Layer | |
| x:0, y:0, width:750, height:144, image:"images/navBar.png" | |
| # Content | |
| pullDown = new Layer | |
| x:0, y:144, width:750, height:1190, image:"images/pullDown.png" | |
| # Make draggable |
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
| # Make circle bigger when starting | |
| # Another way to write Events.DragStart is just "dragstart" | |
| circle.on Events.DragStart, -> | |
| circle.animate | |
| properties: | |
| scale: 1.2 | |
| shadowY: 8 | |
| shadowBlur: 20 | |
| # Move circle back to original position and size when done |
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
| circle.draggable.bounceOptions = | |
| friction: 40, | |
| tension: 200, | |
| tolerance: 0.0001 |
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
| hitTarget = new Layer | |
| width: Screen.width | |
| height: Screen.height | |
| backgroundColor: "transparent" | |
| #把這些圖片變成亂數選項 | |
| hearts = [ | |
| "blue" | |
| "orange" | |
| "purple" |
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
| hitTarget = new Layer | |
| width: Screen.width | |
| height: Screen.height | |
| backgroundColor: "transparent" | |
| #把這些圖片變成亂數選項 | |
| hearts = [ | |
| "blue" | |
| "orange" | |
| "purple" |
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
| hitTarget = new Layer | |
| width: Screen.width | |
| height: Screen.height | |
| backgroundColor: "transparent" | |
| #把這些圖片變成亂數選項 | |
| hearts = [ | |
| "blue" | |
| "orange" | |
| "purple" |