Skip to content

Commit

Permalink
Only animate strokes in SVGs when not on mobile (#79)
Browse files Browse the repository at this point in the history
* Only animate strokes in SVGs when not on mobile

* lint
  • Loading branch information
themadcreator authored Nov 11, 2016
1 parent 2a4ab73 commit b30ba3f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/landing/src/_svgs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,27 @@ $initial-delay: 2s;
position: absolute;

svg g {
path,
line,
circle,
use {
stroke-linecap: butt;
}
}
}

// Only do SVG stroke animation when not on mobile
$mobile-breakpoint: 425px;

@media not all and (max-width: $mobile-breakpoint) {
.pt-wireframe svg g {
path,
line,
circle,
use {
animation: pt-sketch-wireframe 7s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
stroke-dasharray: 1000;
stroke-dashoffset: 1000;
stroke-linecap: butt;
}
}
}
Expand Down

1 comment on commit b30ba3f

@blueprint-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only animate strokes in SVGs when not on mobile (#79)

Preview: docs Coverage: core | datetime

Please sign in to comment.