GithubHelp home page GithubHelp logo

wolfriend / skeleton-mammoth Goto Github PK

View Code? Open in Web Editor NEW
88.0 4.0 5.0 3.05 MB

Skeleton Mammoth - a powerful CSS library designed to enhance user experience by displaying UI skeleton loaders, also known as placeholders. It allows you to simulate the layout or elements of a website while data is being loaded in the background.

License: MIT License

JavaScript 4.83% SCSS 95.17%
css frontend javascript library loaders placeholder skeleton web

skeleton-mammoth's People

Contributors

antonreact avatar wolfriend avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

skeleton-mammoth's Issues

Migrate to SCSS syntax for development purposes.

Description.

For ease of development, the CSS syntax should be rewritten in SCSS. This will provide the following benefits:

  • Shorter and reusable code using variables, mixins, loops and the ability to use nested selectors.

For this task, the following devDependencies should be added:

  • sass
  • sass-loader
  • postcss-loader

And webpack.config.js file should be configured accordingly.

Expanding functionality and bugfixing

Hello there!

I was inspired by skeleton-mammoth.
After looking through your project this I saw some opportunities to improve it.

My improvements includes:

  • replace config.animated with config.animation ("none", "wave", "pulse")
  • add config.orientation - an options only affects config.animation = "wave"
  • remove config.opacity (We already have opportunity to change skeleton colors so we don't really need it)
  • removing unused code
  • update demo project based on changes in the main project

Please let me know you have any thoughts about it - I'd be glad to discuss it with you
Many thanks!

Animations optimization.

Currently, Skeleton Mammoth animates using the background-position property. Although this method has its advantages, it is still not performance-optimized.
The situation could be rectified with performance-optimized properties like: transform: translate().

Override global theme config

Hi!

Is there a way to set global theme to 'light' without the need to add config to every skeleton parent?
If user have a dark theme enabled in the OS, but website is only light, then every parent should have data-sm-config= attribute. Can I override it globally somehow in one place and don't add data-sm-config?

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.