CramX Logo
Back to FlashcardsInformation Technology / Framer and Coffee Script 1

Framer and Coffee Script 1

Information Technology89 CardsCreated 8 months ago

This flashcard set offers quick-reference insights into using Coffee Script and Framer, covering syntax shortcuts (like @ for this), importing assets from Sketch, layer manipulation, and device rendering. It includes code patterns, design import techniques, and useful Framer properties and shortcuts.

Report

What does @ symbol mean in CoffeeScript?

CoffeeScript has a few nice features related to the this keyword.

  • First, CoffeeScript uses the @ symbol as shorthand for “this.”. For example, @foo is equivalent to this.foo.

  • Second, if you use the @ symbol in the parameters of a function, Coffee Script will automatically assign those values as properties of the object.

Rate to track your progress ✦

Tap or swipe ↕ to flip
Swipe ←→Navigate
1/89

Key Terms

Term
Definition

What does @ symbol mean in CoffeeScript?

CoffeeScript has a few nice features related to the this keyword.

  • How to import (from Sketch into Framer) an asset with some transparent padding? (2 techniques)

    • Export it manually in the images folder with the transparency (using “slices” for example)

    • Use a mask in Sketch that is bigg...

How to print the properties of myObject?

for… of (“key” and “value” are just conventional words that you can change)

Illustrate what are x and y for an object

Illustrate what is midX

Illustrate what is midY