Skip to content

maksym2493/js_center_spider_DOM

 
 

Repository files navigation

  1. Replace <your_account> with your Github username in the link
  2. Follow this instructions
    • There are no tests for this task so use npm run lint command instead of npm test

Task: Center the spider

Preview

Your task: Center the spider using only JavaScript. Yes, it task can be easily done with pure CSS, but not now. Do it with JS.

You no need to write any styles or HTML code in this task. Change only main.js file.

Hints:

  • Field has wall class.
  • Spider image has spider class.
  • Use DOM element's properties for calculating spider position.

It's an expected result of your job: Result

About

JS Advanced task. Center the spider.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 63.9%
  • HTML 19.7%
  • SCSS 16.4%