Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clickBool = false
- contentClick = ->
- clickBool = unless a then true else false
- @animate
- opacity: 0.0,
- marginTop: '-1000'
- , 750, ->
- element = a ? "virtualsystem" : "splash"
- ($ "##{element}" ).css
- 'z-index': '1000',
- marginTop: '-1000'
- .animate
- opacity: 1.0
- , 750
- ($ '#bg' ).animate
- opacity: 0.0
- , 500, ->
- image = a ? "bg" : "bg2"
- ($ '#bg' ). attr
- 'src' : "img/#{image}.jpg"
- .animate
- opacity: 1.0
- , 500
- ($ '#splash, #virtualsystem').click contentClick
Add Comment
Please, Sign In to add comment