How to create playstore like download app button using pure css
Playstore like Download APP button
In this tutorial, we will see How to create playstore like download app button using pure css.
The badges provided by all app store providers just don’t play well together with their varying typography and different sizing. So let’s make them all visually unified, infinitely scalable, with pure text for easier localization and some web interaction styles. And while we’re at it: different sizes with the same markup by using some modifier classes.
HTML Markup
This is the basic markup for all badges:
<a class="AT-btn btn-google" href="#" title="Google Play">Anutrickz</a>
CSS
<style type='text/css'> a.btn-google{color:#fff} .AT-btn{padding:10px 16px;margin:5px;font-size:18px;line-height:1.3333333;border-radius:6px;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid transparent;font-weight:500;text-decoration:none;display:inline-block} .AT-btn:active:focus,.btn:focus{outline:0} .AT-btn:focus,.btn:hover{color:#333;text-decoration:none;outline:0} .AT-btn:active{outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)} .btn-google{color:#fff;background: linear-gradient(to right, #5b86e5, #36d1dc);padding:15px 16px 5px 40px;position:relative;font-family:fontfutura;font-weight:600} .btn-google:focus{color:#fff;background-color:#555;border-color:#000} .btn-google:active,.btn-google:hover{color:#fff;background-color:#555;border-color:#000;} .btn-google:before{content:"";background-image:url(https://cdn.statically.io/img/1.bp.blogspot.com/-9x6Zugp4g_k/XpnA8HprU0I/AAAAAAAACxY/6wU2IDhgCG006vKyXxBrKP-cIHkcDBvRACLcBGAsYHQ/s1600/anutrickz%2B114x114.png);background-size:cover;background-repeat:no-repeat;width:30px;height:30px;position:absolute;left:6px;top:50%;margin-top:-15px} .btn-google:after{content:"GET IT ON";position:absolute;top:5px;left:43px;font-size:10px;font-weight:400;} </style>
For SVG ICON
background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13,2.03C17.73,2.5 21.5,6.25 21.95,11C22.5,16.5 18.5,21.38 13,21.93V19.93C16.64,19.5 19.5,16.61 19.96,12.97C20.5,8.58 17.39,4.59 13,4.05V2.05L13,2.03M11,2.06V4.06C9.57,4.26 8.22,4.84 7.1,5.74L5.67,4.26C7.19,3 9.05,2.25 11,2.06M4.26,5.67L5.69,7.1C4.8,8.23 4.24,9.58 4.05,11H2.05C2.25,9.04 3,7.19 4.26,5.67M2.06,13H4.06C4.24,14.42 4.81,15.77 5.69,16.9L4.27,18.33C3.03,16.81 2.26,14.96 2.06,13M7.1,18.37C8.23,19.25 9.58,19.82 11,20V22C9.04,21.79 7.18,21 5.67,19.74L7.1,18.37M12,16.5L7.5,12H11V8H13V12H16.5L12,16.5Z' fill='%23fff'/%3E%3C/svg%3E");
Download Codes