Advertisement
Guest User

Interval in Framerjs

a guest
Aug 24th, 2014
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. textBox = new Layer width: 350, height: 100, backgroundColor: '#333'
  2. textBox.style =
  3.   color: '#fff'
  4.   padding:'40px'
  5.   fontFamily: "Helvetica Neue, Helvetica, sans-serif"
  6.   fontWeight: '100'
  7. textBox.html = ""
  8.  
  9. textBox.center()
  10.  
  11. counter = 0
  12.  
  13. typeLetter = () ->  
  14.     console.log(counter)
  15.     counter++
  16.     textBox.html = counter
  17.  
  18. Utils.interval 0.2, typeLetter
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement