<?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/"
	>

<channel>
	<title>css3 Archives - MalaysiaSky</title>
	<atom:link href="https://www.malaysiasky.com/tag/css3/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.malaysiasky.com/tag/css3/</link>
	<description>Travel, Coffee, Code</description>
	<lastBuildDate>Sun, 22 Sep 2019 14:50:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.5</generator>

<image>
	<url>https://www.malaysiasky.com/wp-content/uploads/2018/06/favicon.png</url>
	<title>css3 Archives - MalaysiaSky</title>
	<link>https://www.malaysiasky.com/tag/css3/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Moving Pacman in Pure CSS3</title>
		<link>https://www.malaysiasky.com/moving-pacman-in-pure-css3/</link>
					<comments>https://www.malaysiasky.com/moving-pacman-in-pure-css3/#respond</comments>
		
		<dc:creator><![CDATA[tuanshah]]></dc:creator>
		<pubDate>Tue, 23 Feb 2016 07:43:30 +0000</pubDate>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[pacman]]></category>
		<guid isPermaLink="false">http://www.malaysiasky.com/?p=106</guid>

					<description><![CDATA[<p>Below example are moving pacman created with fully pure in css3 and HTML5. ﻿ So far this pacman write with two vendor prefix Mozilla and webkit. So please open with these two browser only.&#46;&#46;&#46;</p>
<p>The post <a href="https://www.malaysiasky.com/moving-pacman-in-pure-css3/">Moving Pacman in Pure CSS3</a> appeared first on <a href="https://www.malaysiasky.com">MalaysiaSky</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Below example are moving pacman created with fully pure in css3 and HTML5.</p>
<p><iframe src="https://www.malaysiasky.com/project/pacman.html" width="1000" height="200"><span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start">﻿</span></iframe></p>
<p>So far this pacman write with two vendor prefix <a href="https://www.mozilla.org/en-US/" target="_blank" rel="noopener noreferrer">Mozilla</a> and <a href="https://webkit.org/" target="_blank" rel="noopener noreferrer">webkit</a>. So please open with these two browser only. You can add other prefix by yourself.</p>
<h4>HTML</h4>
<blockquote><p>&lt;body&gt;<br />
&lt;div class=&#8221;pacman&#8221;&gt;<br />
&lt;div class=&#8221;mouthUp&#8221;&gt;<br />
&lt;div class=&#8221;eye&#8221;&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;div class=&#8221;mouthDown&#8221;&gt;&lt;/div&gt;<br />
&lt;/div&gt;</p>
<p>&lt;div class=&#8221;food&#8221;&gt;<br />
&lt;div class=&#8221;dot1&#8243;&gt;&lt;/div&gt;<br />
&lt;div class=&#8221;dot2&#8243;&gt;&lt;/div&gt;<br />
&lt;div class=&#8221;dot3&#8243;&gt;&lt;/div&gt;<br />
&lt;div class=&#8221;dot4&#8243;&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;</p></blockquote>
<p>&nbsp;</p>
<h4>CSS</h4>
<blockquote><p>&lt;style&gt;<br />
.food{<br />
top:50px;<br />
left:100px;<br />
width: 700px;<br />
height:30px;<br />
position:absolute;<br />
}<br />
.dot1, .dot2, .dot3, .dot4{<br />
background: #000 ;<br />
width:30px;<br />
height:30px;<br />
border-radius:20px;<br />
margin:0 70px 0 33px;<br />
display: inline-block;</p>
<p>}</p>
<p>.dot1{<br />
-moz-animation: habisFood 9s infinite;<br />
-webkit-animation: habisFood 9s infinite;<br />
}</p>
<p>.dot2{<br />
-moz-animation: habisFood2 9s infinite;<br />
-webkit-animation: habisFood2 9s infinite;<br />
}<br />
.dot3{<br />
-moz-animation: habisFood3 9s infinite;<br />
-webkit-animation: habisFood3 9s infinite;</p>
<p>}<br />
.dot4{<br />
-moz-animation: habisFood4 9s infinite;<br />
-webkit-animation: habisFood4 9s infinite;<br />
}</p>
<p>.pacman{<br />
position: absolute;<br />
width: 0px;<br />
height: 0px;<br />
border-right: 60px solid transparent;<br />
border-top: 60px solid red;<br />
border-left: 60px solid red;<br />
border-bottom: 60px solid red;<br />
border-top-left-radius: 60px;<br />
border-top-right-radius: 60px;<br />
border-bottom-left-radius: 60px;<br />
border-bottom-right-radius: 60px;<br />
-moz-animation: startEat 9s infinite;<br />
-webkit-animation: startEat 9s infinite;<br />
}</p>
<p>.mouthUp{<br />
position: absolute;<br />
left:-60px;<br />
top:-60px;<br />
width: 0px;<br />
height: 0px;<br />
border-right: 60px solid red;<br />
border-top: 60px solid transparent;<br />
border-left: 60px solid transparent;<br />
border-bottom: 60px solid transparent;<br />
border-top-right-radius: 60px;<br />
border-bottom-right-radius: 60px;<br />
-moz-transform:rotateZ(-90deg);<br />
-moz-animation: UpMouth 1s infinite;<br />
-webkit-transform:rotateZ(-90deg);<br />
-webkit-animation: UpMouth 1s infinite;<br />
}</p>
<p>.mouthDown{<br />
position: absolute;<br />
left:-60px;<br />
top:-60px;<br />
width: 0px;<br />
height: 0px;<br />
border-right: 60px solid red;<br />
border-top: 60px solid transparent;<br />
border-left: 60px solid transparent;<br />
border-bottom: 60px solid transparent;<br />
border-top-right-radius: 60px;<br />
border-bottom-right-radius: 60px;<br />
-moz-transform:rotateZ(84deg);<br />
-moz-animation: DownMouth 1s infinite;<br />
-webkit-transform:rotateZ(84deg);<br />
-webkit-animation: DownMouth 1s infinite;<br />
}</p>
<p>.eye{<br />
background: #FFF;<br />
width:10px;<br />
height:10px;<br />
position: absolute;<br />
top:-10px;<br />
left:34px;<br />
border-radius:3px;<br />
}<br />
@-moz-keyframes UpMouth{<br />
to{<br />
-moz-transform:rotateZ(-45deg);<br />
-webkit-transform:rotateZ(-45deg);<br />
}<br />
}</p>
<p>@-moz-keyframes DownMouth{<br />
to{<br />
-moz-transform: rotateZ(45deg);<br />
}<br />
}</p>
<p>@-webkit-keyframes DownMouth{<br />
to{<br />
-webkit-transform: rotateZ(45deg);<br />
}<br />
}</p>
<p>@-moz-keyframes startEat{<br />
from{<br />
left: 0px;<br />
}<br />
to{<br />
left: 700px;<br />
}<br />
}</p>
<p>@-webkit-keyframes startEat{<br />
from{<br />
left: 0px;<br />
}<br />
to{<br />
left: 700px;<br />
}<br />
}</p>
<p>@-moz-keyframes habisFood{<br />
0%{<br />
opacity: 1;<br />
}<br />
7%{<br />
opacity:0;<br />
}<br />
90%{<br />
opacity:0;<br />
}<br />
}</p>
<p>@-webkit-keyframes habisFood{<br />
0%{<br />
opacity: 1;<br />
}<br />
7%{<br />
opacity:0;<br />
}<br />
90%{<br />
opacity:0;<br />
}<br />
}<br />
@-moz-keyframes habisFood2{<br />
0%{<br />
opacity: 1;<br />
}<br />
15%{<br />
opacity: 1;<br />
}<br />
25%{<br />
opacity:0;<br />
}<br />
90%{<br />
opacity:0;<br />
}<br />
}</p>
<p>@-webkit-keyframes habisFood2{<br />
0%{<br />
opacity: 1;<br />
}<br />
15%{<br />
opacity: 1;<br />
}<br />
25%{<br />
opacity:0;<br />
}<br />
90%{<br />
opacity:0;<br />
}<br />
}<br />
@-moz-keyframes habisFood3{<br />
0%{<br />
opacity: 1;<br />
}<br />
15%{<br />
opacity: 1;<br />
}<br />
28%{<br />
opacity:1;<br />
}<br />
32%{<br />
opacity:0;<br />
}<br />
90%{<br />
opacity:0;<br />
}<br />
}</p>
<p>@-webkit-keyframes habisFood3{<br />
0%{<br />
opacity: 1;<br />
}<br />
15%{<br />
opacity: 1;<br />
}<br />
28%{<br />
opacity:1;<br />
}<br />
32%{<br />
opacity:0;<br />
}<br />
90%{<br />
opacity:0;<br />
}<br />
}</p>
<p>@-moz-keyframes habisFood4{<br />
0%{<br />
opacity: 1;<br />
}<br />
15%{<br />
opacity: 1;<br />
}<br />
38%{<br />
opacity:1;<br />
}<br />
40%{<br />
opacity:0;<br />
}<br />
90%{<br />
opacity:0;<br />
}<br />
}</p>
<p>@-webkit-keyframes habisFood4{<br />
0%{<br />
opacity: 1;<br />
}<br />
15%{<br />
opacity: 1;<br />
}<br />
38%{<br />
opacity:1;<br />
}<br />
40%{<br />
opacity:0;<br />
}<br />
90%{<br />
opacity:0;<br />
}<br />
}<br />
&lt;/style&gt;</p></blockquote>
<p>Hopefully this snippet code on how to create moving pacman using pure CSS3 and HTML5 only can help you</p>
<p>Here also <a href="https://www.malaysiasky.com/category/programming/" target="_blank" rel="noopener noreferrer">few other relate post</a> that might interested you</p>
<p>The post <a href="https://www.malaysiasky.com/moving-pacman-in-pure-css3/">Moving Pacman in Pure CSS3</a> appeared first on <a href="https://www.malaysiasky.com">MalaysiaSky</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.malaysiasky.com/moving-pacman-in-pure-css3/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to change placeholder color with css</title>
		<link>https://www.malaysiasky.com/how-to-change-placeholder-color-with-css/</link>
					<comments>https://www.malaysiasky.com/how-to-change-placeholder-color-with-css/#respond</comments>
		
		<dc:creator><![CDATA[tuanshah]]></dc:creator>
		<pubDate>Thu, 07 Jan 2016 08:34:00 +0000</pubDate>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[placeholder]]></category>
		<guid isPermaLink="false"></guid>

					<description><![CDATA[<p>By default, if you put placeholder, the color is grey, but can we change it to our desire color? yes we can. Since this is HTML5 attribute , so vendor prefix still required at&#46;&#46;&#46;</p>
<p>The post <a href="https://www.malaysiasky.com/how-to-change-placeholder-color-with-css/">How to change placeholder color with css</a> appeared first on <a href="https://www.malaysiasky.com">MalaysiaSky</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>By default, if you put placeholder, the color is grey, but can we change it to our desire color?<br />
yes we can.<br />
Since this is HTML5 attribute , so vendor prefix still required at this time<br />
example.</p>
<p><code>&lt;input type="text" placeholder="placeholder default input"&gt;<br />
</code></p>
<p>what we get is like this</p>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;"><img alt="" border="0" /></a></div>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-20" src="http://malaysiasky.com/malaysiasky/wp-content/uploads/2016/01/placeholder-default-1.png" alt="placeholder-default" width="299" height="200" /></p>
<p>So, how we gonna do change placehodler color? how we can change it to our desire color?</p>
<p>here are the CSS</p>
<p><code>::-webkit-input-placeholder {<br />
color: green;<br />
}<br />
:-moz-placeholder { /* Firefox 18- */<br />
color: green;<br />
}<br />
::-moz-placeholder {  /* Firefox 19+ */<br />
color: green;<br />
}<br />
:-ms-input-placeholder {<br />
color: green;<br />
}</code></p>
<p>so it will change into something like this<br />
<img decoding="async" class="alignnone size-full wp-image-21" src="http://malaysiasky.com/malaysiasky/wp-content/uploads/2016/01/placeholder-green-1.png" alt="placeholder-green" width="299" height="200" /></p>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;"><img alt="" border="0" /></a></div>
<p>cool right? but wait, another placeholder need different color. yes still can.<br />
first, create the html with ID/Class</p>
<p><code>&lt;input type="text" id="input_rare" placeholder="placeholder input rare"&gt; </code></p>
<h6>CSS:</h6>
<p><code>#input_rare::-webkit-input-placeholder {<br />
color: red;<br />
}<br />
#input_rare:-moz-placeholder { /* Firefox 18- */<br />
color: red;<br />
}<br />
#input_rare::-moz-placeholder {  /* Firefox 19+ */<br />
color: red;<br />
}<br />
#input_rare:-ms-input-placeholder {<br />
color: red;<br />
}</code></p>
<p>the you will get placeholder with this color<br />
<img decoding="async" class="alignnone size-full wp-image-23" src="http://malaysiasky.com/malaysiasky/wp-content/uploads/2016/01/placeholder-red.png" alt="placeholder-red" width="299" height="200" /></p>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;"><img alt="" border="0" /></a></div>
<p>and now, we are done. lets see the html and css involved.</p>
<p><script src="https://gist.github.com/tuanshah/1f517f8b9a94843abcec.js"></script></p>
<h6><code>Output:</code></h6>
<div style="clear: both; text-align: center;"></div>
<div style="clear: both; text-align: center;"><a style="margin-left: 1em; margin-right: 1em;"><img alt="" border="0" /></a></div>
<p><img decoding="async" class="alignnone size-full wp-image-24" src="http://malaysiasky.com/malaysiasky/wp-content/uploads/2016/01/placeholder-full-1.png" alt="placeholder-full" width="299" height="199" /></p>
<p>The post <a href="https://www.malaysiasky.com/how-to-change-placeholder-color-with-css/">How to change placeholder color with css</a> appeared first on <a href="https://www.malaysiasky.com">MalaysiaSky</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.malaysiasky.com/how-to-change-placeholder-color-with-css/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 15/198 objects using Disk
Page Caching using Disk: Enhanced 
Content Delivery Network via N/A
Lazy Loading (feed)
Minified using Disk
Database Caching 26/91 queries in 0.037 seconds using Disk

Served from: www.malaysiasky.com @ 2026-05-02 13:21:11 by W3 Total Cache
-->