Sha256: f00d7f6e015a815bcab7c8cb337f464556f284b125492189a77cc3fa7366b1b0

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

// ---------------------------------------------------------------------------
// animation class mode: true | false | silent

$default-animation-class-mode: silent !default;

// ---------------------------------------------------------------------------
// animated class for external use
@mixin animated-class($class: $default-animation-class-mode) {
  $selector: if($class == 'silent', '%animated', '.animated');
  #{$selector} { @include animation(1s ease both); }
}

// ---------------------------------------------------------------------------
// animation-class

@mixin animation-class($name, $class: $default-animation-class-mode) {
  $selector: if($class == 'silent', '%', '.') + $name;
  @if $class {
    #{$selector} { 
      @include animation-name($name); 
      @content;
    } 
  }
}

// ---------------------------------------------------------------------------
// yepnope

// Take a $list, return true if any $args are present.
@function yepnope($list, $args) {
  $list     : compact($list);
  $return   : false;
  @each $arg in $args {
    $return: if(index($list,$arg), true, $return); 
  }
  @return $return; 
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
animate-0.1.0 stylesheets/_helpers.scss
animate-0.1.alpha.0 stylesheets/_helpers.scss