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
| bg = new Layer backgroundColor: "#2d383e" | |
| phoneScreen = new Layer | |
| width: 750 | |
| height: 1334 | |
| clip: true | |
| backgroundColor: "black" | |
| (window.onresize = -> | |
| phoneScreen.center() |
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
| #Text replacer | |
| replacer = (place, oldString, newString) -> | |
| string = place.text() | |
| newText = string.replace(oldString, newString) | |
| place.text(newText) | |
| #Style replacer in text | |
| replacer = (place, oldString, newString) -> | |
| string = place.html() | |
| newText = string.replace(oldString, newString) |
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
| optTest = (options) -> | |
| text = options.text or "Работает" | |
| name = options.name or "сучка" | |
| console.log(text + " " + name) | |
| optTest | |
| text: "Но как же" | |
| name: "работает" |
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
| [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:"yourURL"]]; |
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
| print.clear = () -> | |
| console.clear() | |
| try | |
| consoleParent = document.getElementById("FramerContextRoot-PrintConsole") | |
| consoleChild = consoleParent.children[0].children[1].children | |
| arrForRemove = [] | |
| for i in [0...consoleChild.length] | |
| if consoleChild[i].textContent.indexOf('»') isnt -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
| gradientSVG = (params) -> | |
| # PARAMETERS # | |
| name = params.name || "Add SVG layer" | |
| startColor = params.startColor || "rgb(255,255,0)" | |
| endColor = params.endColor || "rgb(255,0,0)" | |
| startOffset = params.startOffset || 0 | |
| endOffset = params.endOffset || 100 | |
| angle = params.angle || 0 | |
| # IMPLEMENT PARAMS # |
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
| getElementIndex = node => { | |
| let index = 0; | |
| while ((node = node.previousElementSibling)) { | |
| index++; | |
| } | |
| return index; | |
| }; |
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 * as React from "react"; | |
| import { PropertyControls, ControlType } from "framer"; | |
| // Define type of properties | |
| interface Props { | |
| tintColor: any; | |
| text: string; | |
| } | |
| export class BasicFramerXcomponent extends React.Component<Props> { |
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 * as React from "react"; | |
| import { PropertyControls, ControlType } from "framer"; | |
| // Define type of properties | |
| interface Props { | |
| tintColor: string; | |
| enabled: boolean; | |
| height: number; | |
| width: number; | |
| } |
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 * as React from "react"; | |
| import * as ReactDOM from "react-dom"; | |
| import { PropertyControls, ControlType } from "framer"; | |
| import { fontStyles } from "../data/style/_fontStyles"; | |
| import styled from "styled-components"; | |
| // Define type of property | |
| interface Props { | |
| amount: number; | |
| lineWidth: number; |
OlderNewer