Main content
Pixar in a Box
Course: Pixar in a Box > Unit 10
Lesson 1: Introduction to animation- Start here!
- Math meets artistry
- 1. Straight ahead animation
- Straight ahead animation
- 2. Linear interpolation
- Animation with linear interpolation
- 3. Bezier curves
- Animation with Bezier curves
- 4. Squash and stretch
- Squash and stretch animation with Bezier curves
- Animation 101
- Getting to know Rob Jensen
- Save your animation
- Hands-on activity: animating Luxo Jr.
© 2023 Khan AcademyTerms of usePrivacy PolicyCookie Notice
Save your animation
Make and save your own animation!
Your turn!
Use the program below to build your animation. Now you can move the ball anywhere as well as rotate it. Use the and avars to position the ball. Use the avar to control the stretch and squash, and use the avar to control the rotation of the ball.
- When you're happy with your animation press the Save button; this will bring up a black box containing the code for your animation.
- Copy all the text in the box and paste it here to create a new program.
- Then save that program.
Note: If you see an X and several A's on the last two lines, delete those.
Challenges
- Can you make the ball look heavy?
- Can you make it look like a water balloon?
- Can you make it look happy?
Want to join the conversation?
- How do you save?(104 votes)
- Click the save button. When you click that, a black box will appear with JavaScript code. Highlight everything and copy it.
Go to computer programming, click on JavaScript and click new program. You should now see a blank canvas. (Scroll 2/3 down the page)
This is the link: https://www.khanacademy.org/computer-programming/new/pjs
Paste the code in this new program, hit save and name your program.
Your finished product should look like a mini GIF.
Hope this helps!(115 votes)
- how do you save?(10 votes)
- Press save and copy the code into a new java script program(18 votes)
- Who created animation, and how did they make it come to life?(10 votes)
- Charles Émile Reynaud I think.. and I'm not sure how they made it come to life.(9 votes)
- hi how can animate a new object(5 votes)
- The lesson will teach you - you can use Bezier Curves, which are curves that makes your animation realistic. Use the Pink dots to adjust. The Y is for height and the X is for left & right. To make the ball seem alive, you can stretch it while it's falling and squash it when it hits the ground. The r is for rotation of the ball.(9 votes)
- How do i animate my ball doing a 360 no scope and then making the ball teleport like a ninja(8 votes)
- u can,t boy u can,t!(2 votes)
- ¿Puedo modificar el código para cambiar la imagen?, es decir, ¿en vez de la pelota tenéis diferentes variables para cada personaje pixar o solo habéis hecho la varible ('pixar/luxoball') asociada a una imagen?
¿Si yo pusiera var ball= getImage('pixar/grandpaUp'); podría animar al abuelo de UP?(5 votes)- No, no lo creo. Podrías intentarlo, sin embargo.(4 votes)
- how do you saeve this plz answer soon(1 vote)
- Click the save button. When you click that, a black box will appear with JavaScript code. Highlight everything and copy it.
Go to computer programming, click on JavaScript and click new program. You should now see a blank canvas. (Scroll 2/3 down the page)
Paste the code in this new program, hit save and name your program.
Your finished product should look like a mini gif.(7 votes)
- how do i save after the animation(3 votes)
- Where is javascript? Can you send me alink.(2 votes)
- why is the save not working(3 votes)
- there should be a black box with code u have to copy all of the code and paste it here
https://www.khanacademy.org/computer-programming/new/pjs(2 votes)
- how do you save? it shows me a black box with code..(3 votes)
- you have to copy all the code and paste it here
https://www.khanacademy.org/computer-programming/new/pjs(2 votes)