{"id":31863,"date":"2016-01-28T11:27:16","date_gmt":"2016-01-28T05:57:16","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=31863"},"modified":"2016-02-08T14:34:56","modified_gmt":"2016-02-08T09:04:56","slug":"how-to-create-animated-button-with-the-help-of-css","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/how-to-create-animated-button-with-the-help-of-css\/","title":{"rendered":"How to create animated button with the help of css"},"content":{"rendered":"<p><strong> CSS3 buttons with animation effects that are created. Web designer easy to find more creative though on web design buttons. The effect on the buttons is created using the box-shadows and linear-gradients properties. There are two gradients used basically, one is linear and the second one is radial to make the effect much nicer.<\/strong><\/p>\n<p><strong>{HTML}<\/strong><\/p>\n<p><code>&lt;ul&gt;<br \/>\n&lt;li&gt;&lt;a href=\"#\" class=\"point green\"&gt;Access&lt;span class=\"point\"&gt; have an account&lt;\/span&lt;\/a&gt;&lt;\/li&gt;<br \/>\n&lt;li&gt;&lt;a href=\"#\" class=\"point rad\"&gt;Access&lt;span class=\"point\"&gt; really want to. &lt;\/span&lt;\/a&gt;&lt;\/li&gt;<br \/>\n&lt;li&gt;&lt;a href=\"#\" class=\"yallow \"&gt; Access &lt;span class=\"point\"&gt;take a look.&lt;\/span&gt;&lt;\/a&gt;&lt;\/li&gt;<br \/>\n&lt;\/ul&gt;<\/code><\/p>\n<p><strong>{CSS}<\/strong><\/p>\n<p><code>* {\u00a0 margin: 0; padding: 0; -moz-box-sizing: border-box; -o-box-sizing: border-box;<br \/>\n-webkit-box-sizing: border-box; box-sizing: border-box;}<\/code><\/p>\n<p><code><strong>body<\/strong> {width: 101%;<br \/>\nheight: 101%;<br \/>\nfont-family: \"helvetica\";<br \/>\nfont-size: 13px;<br \/>\ntext-align: center;<br \/>\nbackground: #000fff url('http:\/\/subtlepatterns.subtlepatterns.netdna-cdn.com\/patterns\/low_contrast_linen.png');}<\/code><\/p>\n<p><code><strong>ul<\/strong> {margin: 29px auto;text-align: center;}<\/code><\/p>\n<p><code><strong>li<\/strong> {list-style: none;<br \/>\nposition: relative;<br \/>\ndisplay: inline-block;<br \/>\nwidth: 101px;<br \/>\nheight: 101px;}<\/code><\/p>\n<p><code><strong>@-moz-keyframes rotate<\/strong> {<br \/>\n0% {transform: rotate(0deg);}<br \/>\n100% {transform: rotate(-363deg);}<br \/>\n  }<\/code><br \/>\n<code><strong>@-webkit-keyframes rotate<\/strong> {<br \/>\n0% {transform: rotate(0deg);}<br \/>\n101% {transform: rotate(-363deg);}<br \/>\n}<br \/>\n<strong>@-o-keyframes rotate<\/strong> {<br \/>\n0% {transform: rotate(0deg);}<br \/>\n100% {transform: rotate(-363deg);}<br \/>\n}<br \/>\n<strong>@keyframes rotate<\/strong> {<br \/>\n0% {transform: rotate(0deg);}<br \/>\n100% {transform: rotate(-363deg);}<br \/>\n}<\/code><\/p>\n<p><code><strong>.point<\/strong> {<br \/>\ndisplay: block;<br \/>\nposition: absolute;<br \/>\nleft: 0;<br \/>\ntop: 0;<br \/>\nwidth: 100%;<br \/>\nheight: 100%;<br \/>\npadding-top: 29px;<br \/>\ntext-decoration: none;<br \/>\ntext-align: center;<br \/>\nfont-size: 23px;<br \/>\ntext-shadow: 0 1px 0 rgba(255,255,255,.7);<br \/>\nletter-spacing: -.063em;<br \/>\nfont-family: \"Hammersmith One\", sans-serif;<br \/>\n-webkit-transition: all .23s ease-in-out;<br \/>\n-o-transition: all .23s ease-in-out;<br \/>\n-moz-transition: all .23s ease-in-out;<br \/>\ntransition: all .23s ease-in-out;<br \/>\nbox-shadow: 2px 2px 7px rgba(0,0,0,.2);<br \/>\nborder-radius: 303px;<br \/>\nz-index: 1;<br \/>\nborder-width: 3px;<br \/>\nborder-style: solid;<br \/>\n}<\/code><\/p>\n<p><code><strong>.point<\/strong>:hover {<br \/>\nwidth: 129%;<br \/>\nheight: 129%;<br \/>\nleft: -15%;<br \/>\ntop: -15%;<br \/>\nfont-size: 31px;<br \/>\npadding-top: 37px;<br \/>\n-webkit-box-shadow: 6px 6px 11px rgba(0,0,0,.3);<br \/>\n-o-box-shadow: 6px 6px 11px rgba(0,0,0,.3);<br \/>\n-moz-box-shadow: 6px 6px 11px rgba(0,0,0,.3);<br \/>\nbox-shadow: 6px 6px 11px rgba(0,0,0,.3);<br \/>\nz-index: 2;<br \/>\nborder-size: 9px;<br \/>\n-webkit-transform: rotate(-359deg);<br \/>\n-moz-transform: rotate(-359deg);<br \/>\n-o-transform: rotate(-359deg);<br \/>\ntransform: rotate(-359deg);<br \/>\n}<\/code><\/p>\n<p><code><strong>a.rad<\/strong> {<br \/>\nbackground-color: rgba(239,57,50,1);<br \/>\ncolor: rgba(133,32,28,1);<br \/>\nborder-color: rgba(133,32,28,.2);<br \/>\n}<\/code><\/p>\n<p><code><strong>a.rad<\/strong>:hover { color: rgba(239,57,50,1);}<br \/>\na.green {<br \/>\nbackground-color: rgba(1,151,171,1);<br \/>\ncolor: rgba(0,63,71,1);<br \/>\nborder-color: rgba(0,63,71,.2);<br \/>\n}<\/code><\/p>\n<p><code>a.green:hover {color: rgba(1,151,171,1);}<\/code><\/p>\n<p><code><strong>a.yallow<\/strong> {<br \/>\nbackground-color: rgba(252,227,1,1);<br \/>\ncolor: rgba(153,38,0,1);<br \/>\nborder-color: rgba(153,38,0,.2);<br \/>\n}<\/code><\/p>\n<p><code><strong>a.yallow<\/strong>:hover { color: rgba(252,227,1,1);}<\/code><br \/>\n<code>.point span.point {<br \/>\ndisplay: block;<br \/>\nopacity: 0;<br \/>\n-webkit-transition: all .5s ease-in-out;<br \/>\n-moz-transition: all .5s ease-in-out;<br \/>\n-o-transition: all .5s ease-in-out;<br \/>\ntransition: all .5s ease-in-out;<br \/>\nfont-size: 1px;<br \/>\nborder: none;<br \/>\npadding: 50% 27% 0 27%;<br \/>\ncolor: #fff;<br \/>\n}<\/p>\n<p><strong>.point<\/strong> span:hover {<br \/>\nopacity: .86;<br \/>\nfont-size: 17px;<br \/>\n-webkit-text-shadow: 0 2px 2px rgba(0,0,0,.6);<br \/>\n-moz-text-shadow: 0 2px 2px rgba(0,0,0,.5);<br \/>\n-o-text-shadow: 0 2px 2px rgba(0,0,0,.6);<br \/>\ntext-shadow: 0 2px 2px rgba(0,0,0,.6);<br \/>\n}<\/code><\/p>\n<p><code><strong>.green<\/strong> span {\u00a0 background: rgba(0,63,71,.7); }<\/code><\/p>\n<p><code><strong>.rad<\/strong> span { background: rgba(133,32,28,.7);\u00a0 }<\/code><\/p>\n<p><code><strong>.yallow<\/strong> span { background: rgba(161,145,0,.7); }<\/code><br \/>\n<code><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-31865\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/01\/buttonimg.jpg\" alt=\"buttonimg\" width=\"422\" height=\"146\" \/><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-31866\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/01\/buttonimg1.jpg\" alt=\"buttonimg1\" width=\"410\" height=\"168\" \/><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CSS3 buttons with animation effects that are created. Web designer easy to find more creative though on web design buttons. The effect on the buttons is created using the box-shadows and linear-gradients properties. There are two gradients used basically, one is linear and the second one is radial to make the effect much nicer. {HTML} [&hellip;]<\/p>\n","protected":false},"author":773,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":2},"categories":[1],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/31863"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/773"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=31863"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/31863\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=31863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=31863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=31863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}