Thread Options
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
CSS animations
Ive been trying to put css animations can someone help me?
CSS
HTML, BODY { height: 100%; } $colors: #360745, #D61C59, #E7D84B, #EFEAC5, #1B8798; BODY { background: hsl(200,70,11); background-size: .12em 100%; font: 16em/1 Arial; } .text--line { font-size: .5em; } svg { position: absolute; width: 100%; height: 100%; } $max: 5; $stroke-step: 7%; .text-copy { fill: none; stroke: white; stroke-dasharray: $stroke-step $stroke-step * ($max - 1); stroke-width: 3px; animation: stroke-offset 9s infinite linear; @for $item from 1 through $max { $stroke-color: nth($colors, $item); &:nth-child(#{$item}) { stroke: $stroke-color; stroke-dashoffset: $stroke-step * $item; } } } @keyframes stroke-offset { 50% { stroke-dashoffset: $stroke-step * $max; stroke-dasharray: 0 $stroke-step * $max*2.5; } }
<svg viewBox="0 0 800 600"> <symbol id="s-text"> <text text-anchor="middle" x="50%" y="35%" class="text--line" > Vegas </text> <text text-anchor="middle" x="50%" y="68%" class="text--line2" > Hacks </text> </symbol> <g class="g-ants"> <use xlink:href="#s-text" class="text-copy"></use> <use xlink:href="#s-text" class="text-copy"></use> <use xlink:href="#s-text" class="text-copy"></use> <use xlink:href="#s-text" class="text-copy"></use> <use xlink:href="#s-text" class="text-copy"></use> </g> </svg>
HTML
Reply
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
4 REPLIES 4
BJ5
09-19-2016
08:44 AM
Thread Options
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Pretty complicated stuff! How are you including this on your site? With an embed code element?
Reply
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
Thread Options
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
well i know i need to add the CSS first in the edit HTML and CSS page. Then put the embedded code with the HTML inside it.
Reply
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
BJ5
09-20-2016
04:01 PM
Thread Options
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Depending on the CSS it's possible the default theme CSS is overriding some of this. Hard to say, though. Are you seeing anything in the source code on your live site? If the code for it shows, you might be able to tell there if something is being overridden.
Reply
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
Thread Options
- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Did you get any helpful answers yet?
I'm trying animate a CSS spinning loader. A simple enough task, but not working in Weebly?
Reply
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report