Skip to content

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

@alfonsusac

Description

@alfonsusac

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedOpen for all. You do not need permission to work on these.scope: curriculumLessons, Challenges, Projects and other Curricular Content in curriculum directory.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions