CSS3 keyframes & media queries TEST

In this example below you will see how to do a CSS3 keyframes & media queries TEST with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by kubasanitrak, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright kubasanitrak ©
  • HTML
  • CSS
  • JavaScript
    

/*Downloaded from https://www.codeseek.co/kubasanitrak/css3-keyframes-andamp-media-queries-test-OEmRaL */
    *, *::before, *::after {margin: 0; padding: 0; }
html {box-sizing: border-box} *, *::before, *::after {box-sizing: inherit}


@mixin bgc-offset($n, $color) { @for $i from 1 through $n { &:nth-child(#{$i}) { background-color: darken($color, 0% + ($i * 2)); } } } 
@mixin mq($point) {@if $point == mq-XL {@media screen and (min-width: 90.1rem) { @content; } } @else if $point == mq-L-UP {@media screen and (min-width: 48.1rem)  { @content; } } @else if $point == mq-M-UP {@media screen and (min-width: 40.1rem)  { @content; } } @else if $point == mq-S {@media screen and (max-width: 40rem)  { @content; } } @else if $point == mq-land {@media screen and (orientation: landscape)  { @content; } } @else if $point == mq-portr {@media screen and (orientation: portrait)  { @content; } } }

@mixin uni-offset($n, $y, $prop, $timing:0.5, $offset: 0.25) { @for $i from 1 through $n { &:nth-child(#{$i}) { $sum: $i * $offset; transition: $prop #{$timing}s #{$sum + $y}s ease-out; } } }




/*Downloaded from https://www.codeseek.co/kubasanitrak/css3-keyframes-andamp-media-queries-test-OEmRaL */
    

Comments