Coder Social home page Coder Social logo

How to resize the loaders about css-loaders HOT 7 CLOSED

lukehaas avatar lukehaas commented on August 15, 2024
How to resize the loaders

from css-loaders.

Comments (7)

MrGeneric avatar MrGeneric commented on August 15, 2024 2

You change the font-size property in the .loader class to change the size.

from css-loaders.

steelbrain avatar steelbrain commented on August 15, 2024

I tried it already and it seems to disappear when I drop the font-size below 74px and at 74px it's already tiny.
I am using the sixth loader by the way,

from css-loaders.

steelbrain avatar steelbrain commented on August 15, 2024

I just tested it in the demo site and changing font-size seems to work for other spinners, not the sixth one 😞

from css-loaders.

MrGeneric avatar MrGeneric commented on August 15, 2024

74px would be massive, it's almost full-screen for me?

I am able to change the font-size property of the sixth loader on the demo site. At 74px though I need to change the overflow property of the load-container to visible for it to show up. 😄

Edit: nevermind, I was looking at the 8th one, sorry. I'll see if I can figure out how to scale it.

from css-loaders.

MrGeneric avatar MrGeneric commented on August 15, 2024

If you add a new transform: scale(x,y); property to the .load-container, you can scale the loader up or down.

transform: scale(.5,.5); will make it half size.
transform: scale(2,2); will make it double.

from css-loaders.

steelbrain avatar steelbrain commented on August 15, 2024

It's not a solution, but a workaround. But i've got no problem with it as long as it works.
Thanks for your time and help. I appreciate that 😄 (I don't understand why GitHub smile is a laughter).

from css-loaders.

MrGeneric avatar MrGeneric commented on August 15, 2024

Haha yeah, it's a workaround but I'm not sure if it's even possible to change the size just by editing the loader class. I couldn't figure it out at least, and there's only so much time I can spend looking at it while I'm supposed to be working. 😄

You're welcome, glad to help!

from css-loaders.

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.