bounce-vertical()

  • /src/css/core/mixin/_animation.scss

Bounce vertical

scss

//
// @param   length             $px        bounce size
// @param   second|milisecond  $delay: 0  animate time
//

@use "node_modules/sass-basis/src/css/core";

.c-foo {
  @include core.hover() {
    @include core.bounce-vertical(4px, .5s);
  }
}

shake-vertical()

  • /src/css/core/mixin/_animation.scss

Shake vertical

scss

@use "node_modules/sass-basis/src/css/core";

.c-foo {
  @include core.hover() {
    @include core.shake-vertical();
  }
}

vibrate-vertical()

  • /src/css/core/mixin/_animation.scss

Vibrate vertical

scss

@use "node_modules/sass-basis/src/css/core";

.c-foo {
  @include core.hover() {
    @include core.vibrate-vertical();
  }
}

bounce-horizontal()

  • /src/css/core/mixin/_animation.scss

Bounce horizontal

scss

//
// @param   length             $px        bounce size
// @param   second|milisecond  $delay: 0  animate time
//

@use "node_modules/sass-basis/src/css/core";

.c-foo {
  @include core.hover() {
    @include core.bounce-horizontal(4px, .5s);
  }
}

shake-horizontal()

  • /src/css/core/mixin/_animation.scss

Shake horizontal

scss

@use "node_modules/sass-basis/src/css/core";

.c-foo {
  @include core.hover() {
    @include core.shake-horizontal();
  }
}

vibrate-horizontal()

  • /src/css/core/mixin/_animation.scss

Vibrate horizontal

scss

@use "node_modules/sass-basis/src/css/core";

.c-foo {
  @include core.hover() {
    @include core.vibrate-horizontal();
  }
}

bounce-scale()

  • /src/css/core/mixin/_animation.scss

Bounce scale

scss

//
// @param   float              $px        bounce size
// @param   second|milisecond  $delay: 0  animate time
//

@use "node_modules/sass-basis/src/css/core";

.c-foo {
  @include core.hover() {
    @include core.bounce-scale(1.2, .5s);
  }
}

shake-scale()

  • /src/css/core/mixin/_animation.scss

Shake scale

scss

@use "node_modules/sass-basis/src/css/core";

.c-foo {
  @include core.hover() {
    @include core.shake-scale();
  }
}

vibrate-scale()

  • /src/css/core/mixin/_animation.scss

Vibrate scale

scss

@use "node_modules/sass-basis/src/css/core";

.c-foo {
  @include core.hover() {
    @include core.vibrate-scale();
  }
}

extend-underline()

  • /src/css/core/mixin/_animation.scss

Extend the underline from the center.

  • This mixin use the pseudo-elements.

scss

@use "node_modules/sass-basis/src/css/core";

.c-foo a {
  @include core.hover() {
    &::after {
      @include core.extend-underline();
    }
  }
}