Giter VIP home page Giter VIP logo

practice-for-week-07-css-transitions's Introduction

Practice: CSS Transitions

Now, it's time to practice your understanding of the CSS: Transitions.

Set up

Clone the practice from the starter.

Once you've in VS Code, you can drag the index.html file into your browser to view the webpage, or use the File Explorer to open it in your browser. The only file you will need to edit for this practice is main.css.

Remember to save the CSS file and refresh the page in the browser whenever you make changes.

Background and Context

You will begin with a web page that has all of the HTML and a little CSS completed. You only need to add to the CSS to complete each phase.

Phase 1 - Rotate

The first step is to use the CSS transition transform. Your goal is to rotate the rocket 250 degrees when you hover over it. Follow the instructions and use the gif as an example.

Hint: The MDN docs for transform and MDN docs for hover or other online resources may help.

Phase 2 - Translate

The next step is to use the CSS transition transform to move the astronaut element 100 pixels on the x axis when you hover over it. Follow the instructions and use the gif as the targeted example.

Hint: The MDN docs for translate or other online resources may help.

Bonus: Spin

The last step is to use what you have larned about transitions to create a continuously fluid spinning animation. Follow the instructions in the bonus section to create a smooth 360 deg spinning Earth.

Hint: The MDN docs for animation or other online resources may help.

What you've learned

Congratulations! You have successfully practiced how to use the core css stlyes associated with CSS: Transitions. This includes setting

  • transition
  • transform
  • rotate
  • translate
  • animation

practice-for-week-07-css-transitions's People

Contributors

aa-assessment-project-manager[bot] avatar pwentzeljr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.