Code Monkey home page Code Monkey logo

Comments (4)

KevinMulhern avatar KevinMulhern commented on May 30, 2024

Thanks @royalh23, @TheOdinProject/html-css can we get you're input on this one please?

from curriculum.

MaoShizhong avatar MaoShizhong commented on May 30, 2024

I think it makes sense to use a transform there instead.
Technically, transform: scale(2) is a little different in that it'll just scale the element itself, including border size, whereas animating the width/height will only change the space taken up by the element as a whole (regardless of box-sizing).

Don't think that's a differentiation that's important to include, and I can't think of many cases with that kind of animation where you'd purposely want to just change the width/height and not just scale the whole thing. Since the lesson says we have also specified that the ball double in **size.**, we should be fine to just replace the relevant code.

The codepen will need to be changed accordingly as well.

from curriculum.

MaoShizhong avatar MaoShizhong commented on May 30, 2024

Going to assign you @royalh23. I think changing the height/width adjustment to simply transform: scale(2); makes much more sense here (esp. since we've already covered transforms).

We will handle the codepen on our side so both parts are changed at roughly the same time.

from curriculum.

royalh23 avatar royalh23 commented on May 30, 2024

@MaoShizhong Gotcha. Will make a PR tomorrow

from curriculum.

Related Issues (20)

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.