Solved

Animate a Title

Posted on 2016-11-06
7
35 Views
Last Modified: 2016-11-08
Hi Experts,

Using CSS only (I'm taking a CSS Course), how can I animate in a title (h1), one character at a time, into the desired position?

Thank you.
0
Comment
Question by:APD_Toronto
  • 4
  • 2
7 Comments
 
LVL 51

Expert Comment

by:Julian Hansen
ID: 41876645
Blind links deleted

Please refer to EE policy on posting links to off site content (http://support.experts-exchange.com/customer/portal/articles/1162518)

Posts with links to OSC should contain enough commentary for the post to stand on its own.

JulianH
0
 

Author Comment

by:APD_Toronto
ID: 41877636
Hi Julian, I don't believe I posted any links
0
 
LVL 1

Expert Comment

by:Andrew Derse
ID: 41877882
It's possible, but my approach will probably hurt your SEO as the title tag would be hidden while the animation is occurring.

Here's how I would do it:

1) Have the <h1> text as hidden, but on the screen in the end position desired.
2) Break out each letter in it's own div or span.
3) Animate that span using css animation
4) Once everything is lined up, turn off all of the divs/spans and turn on <h1> tag.

Just 1 approach.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:APD_Toronto
ID: 41878086
I know what you mean, but how can I both set left: -200px then transform left 30px

Can you give me an example perhaps "Hi" or "Hey"
0
 

Author Comment

by:APD_Toronto
ID: 41878087
I  mean, I dont think that you have a pseudo-selector like span:onbodyload?
0
 
LVL 1

Accepted Solution

by:
Andrew Derse earned 500 total points
ID: 41878781
Correct, most of the time this is easily accomplished with javascript or jQuery.  I prefer jQuery. So when page loads you can manipulate the css through the jQuery calls. I personally wouldn't do it purely with css, I would use jQuery to help.
0
 

Author Comment

by:APD_Toronto
ID: 41878950
I know how to do it with jQuery, but this is a CSS course. Can you help me out?
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now