question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rotate CSS Property - Learn CSS Transforms by Building a Penguin - Step 84

See original GitHub issue

Describe the Issue

Individual Transform is recently added to the specification module level 2 and allows developer to use rotate: 90deg as opposed to transform: rotate(90deg). Most browsers has adopted this feature and I can see it simplifies the coding experience as it is easier to remember.

Obviously it is new and might be a concern in backward-compatibility, however it would be weird to create a website that uses the rotate transform to support old browser in general.

Affected Page

https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-css-transforms-by-building-a-penguin/step-84

Your code

.foot.left {
  left: 25%;
  rotate: 80deg;
  /* transform: rotate(80deg); */
}

.foot.right {
  right: 25%;
  rotate: -80deg;
  /* transform: rotate(-80deg); */
}

Expected behavior

It should be accepted

Screenshots

image

System

  • Device: PC
  • OS: Windows 10
  • Browser: Brave
  • Version: Latest

Additional context

Correct me if I’m wrong, I am still new in using GitHub with other people 😃

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
bbsmoothcommented, Sep 13, 2022

it would be weird to create a website that uses the rotate transform to support old browser in general.

I’m going to disagree just a little here.

Can I Use: CSS property: rotate

Firefox has had this for a while now but Chrome/Edge have only had it for the last few new versions. People from all over the world use this site. Not all of them have the latest versions of things. If the rotation was crucial for my website then I would not use the rotate property if I wanted everyone to see it.

I guess it depends if we are OK with some people not passing this step and the only solution is to upgrade their browser and they might not be able to.

1reaction
Sboonnycommented, Sep 10, 2022

There are multiple steps that require, using transform: , I have listed them below.

I think the test should accept the values, because they are rendered correctly and consider a correct syntax.

Should the description be changed?

The files

Read more comments on GitHub >

github_iconTop Results From Across the Web

Learn CSS Transforms by Building a Penguin - Step 54
Learn CSS Transforms by Building a Penguin - Step 54 - HTML-CSS - The freeCodeCamp Forum.
Read more >
Step 1 | Learn CSS Transforms by Building a Penguin
You will be building a happy Flappy Penguin, and further exploring CSS transforms and animations in the process. Begin with your basic HTML...
Read more >
A Complete Guide To CSS Transforms And Transitions Property
CSS Transforms and Transitions property can do the trick! CSS Transform property applies movement, rotation, skewing, and scaling to the HTML ...
Read more >
Archives – CSS Weekly
How To Create Advanced Animations With CSS ... Grained Control Over CSS Transforms With Individual Transform Properties ... 3 Days of Intense Learning....
Read more >
My First Penguin - FreeCodeCamp - CodePen
<p>Creating my first penguin from scratch using a freecodecamp lesson as an example. Additionally, using CSS Variables to change many CSS styles properties...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found