<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>WEBCreate practice!! &#187; CSS3</title>
	<atom:link href="http://study.guidebook.jp/web_create/?feed=rss2&#038;tag=css3" rel="self" type="application/rss+xml" />
	<link>http://study.guidebook.jp/web_create</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Wed, 22 May 2013 02:26:09 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.guidebook.jp/web_create/?feed=rss2&amp;tag=css3" />
		<item>
		<title>animate.cssを使ってCSSのみでアニメーションを作ろう!!</title>
		<link>http://study.guidebook.jp/web_create/?p=117</link>
		<comments>http://study.guidebook.jp/web_create/?p=117#comments</comments>
		<pubDate>Sun, 28 Apr 2013 03:59:52 +0000</pubDate>
		<dc:creator>masayoshi</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://study.guidebook.jp/web_create/?p=117</guid>
		<description><![CDATA[CSSの進化は恐ろしいですね(笑)。今回はJavaScriptを全く使用せずにCSSのみでアニメーション効果をつけることができる「animate.css」というMITライセンスで配布されているスタイルシートをご紹介します [...]]]></description>
				<content:encoded><![CDATA[<p>CSSの進化は恐ろしいですね(笑)。今回はJavaScriptを全く使用せずにCSSのみでアニメーション効果をつけることができる「animate.css」というMITライセンスで配布されているスタイルシートをご紹介します。<span id="more-117"></span><br />
&nbsp;<br />
まずは、使用準備から<a href="http://daneden.me/animate/">本家のサイト</a>からファイルをダウンロードしてきてください。読み込むファイルは「animate.css」のみでOKです。<br />
(※minの方でも構わないですけどカスタマイズするなら通常版にしてた方がいいです)<br />
&nbsp;</p>
<h2>animate.cssを読み込む</h2>
<pre class="brush: xml; title: ; notranslate">
&lt;link rel=&quot;stylesheet&quot; href=&quot;animate.css&quot; type=&quot;text/css&quot;&gt;
</pre>
<p>今回はオンマウス時にアニメーション効果をつけようと思いますのでサンプルのソースコードは&lt;a&gt;を使ってください。<br />
&nbsp;</p>
<h2>マークアップ</h2>
<pre class="brush: xml; title: ; notranslate">
&lt;a class=&quot;animated flash&quot; href=&quot;#&quot;&gt;flash&lt;/a&gt;
</pre>
<p>class名で<strong>animated</strong>と使いたい効果の名前を指定するだけでOKです。でもせっかくなのでもう少し・・・。<br />
&nbsp;</p>
<h2>オンマウス時に動くように設定</h2>
<p>animate.cssの55行目近辺を見てもらうと下記のコードが見つかると思います。</p>
<pre class="brush: css; title: ; notranslate">
.flash {
	-webkit-animation-name: flash;
	-moz-animation-name: flash;
	-o-animation-name: flash;
	animation-name: flash;
}
</pre>
<p>これを</p>
<pre class="brush: css; title: ; notranslate">
.flash:hover {
	-webkit-animation-name: flash;
	-moz-animation-name: flash;
	-o-animation-name: flash;
	animation-name: flash;
}
</pre>
<p>に変えるだけ、非常に簡単ですね。flash以外の効果もオンマウスにしたい場合は<a href="http://study.guidebook.jp/sample/animate.css-master/" target="_blank">こちらのページ</a>の効果一覧から好きな効果の名前抽出してanimate.cssの中身を書き換えてください。<br />
&nbsp;<br />
サンプルページは全部a:hoverで設定しました。見ていただいた方はわかると思うんですが6割がたa:hoverではきついですね・・・。<br />
対応ブラウザはもちろんIEは入ってません。IEをでもという方は<a href="http://modernizr.com/" target="_blank">Modernizr</a>をつかうという話なんですが色々調べてみてまともにIEで動いてくれるものがありませんでした。<br />
たぶん僕が間違っているんだろうとは思うんですが、申し訳ありません。IEでの対処法が分かり次第記事を追加しようと思います。<br />
&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://study.guidebook.jp/web_create/?feed=rss2&#038;p=117</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://study.guidebook.jp/web_create/?p=117" />
	</item>
	</channel>
</rss>
