Git Product home page Git Product logo

animal-save-green-onion's Introduction

Animal Save!

Use your knowledge of media queries and absolute positioning to help these animals escape sudden danger.

Tasks

  1. Fork this repo.
  2. Clone your fork.
  3. cd into the local folder for the project.
  4. Open the index.html in the browser to navigate to different animal pages to see which ones you can rescue. By clicking and dragging on the corner of the browser see where the animals run into trouble.
  5. Take advantage of media queries using max-width for desktop down and min-width for mobile up designs. Also utilize positioning: absolute, as well as properties such as top:, left:, right: ,bottom: to set the animals positioning. You can also use CSS transform: rotate() if you wish to turn the animals. A single media query should be used to solve each page.
    Write the media queries neccesary in the css files for each corresponding animal:
  • For the bear, when sizing the browser from smaller to larger (mobile up), when the screen reaches 1196px stop him from falling off the cliff by setting him to stay 800px from the left side of the screen before he reaches the edge.
  • For the ostrich, starting with the screen larger and dragging it smaller (desktop down) have the ostrich jump upwards 100px closer to the top of the screen to avoid being eaten by the aligator. As the screen gets smaller then he will run on top of Mr. Aligators back.
  • For the monkey, use a combination of min-width and max-width to set a media query that will allow the Monkey to jump up over the Spice Girls from screen size of 406px to 1090px keeping him safe from their affection.
  • For the dolphin, using min-width and max-width help her rotate and jump up through the hoop from screen sizes of 642px to 1090px. Note: you can use transform: rotate() command to accomplish this. Read about the setting for rotate here.
  1. Please install Firefox if you haven't already as it is required for the screenshot tests to run.
  2. Type learn command from Terminal to run local tests.

There is a finished working copy of this site here.

Resources

Finished Solution Example
Mozilla Dev Network - CSS Transform

View Animal Save on Learn.co and start learning to code for free.

animal-save-green-onion's People

Contributors

annjohn avatar fislabstest avatar fs-lms-test-bot avatar jongrover avatar loganhasson avatar pletcher avatar victhevenot avatar wsaxe avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

animal-save-green-onion's Issues

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.