It’s Trendy! How to Make a Zoom Hover Button for the Web Without JavaScript

A “zoom hover button” is a trendy web ui element which features an image that “zooms in” when the mouse hovers over it. While it’s completely useless on a mobile page, the zoom hover button is still a really cool effect for mouse-and-computer users visiting your page.

Here’s an example (mouse over to view effect):


Want to make one of your own? Here’s a look at how to do it!

First, you’ll need to create a div tag in your HTML document like so:

<div class='zoombtn' id='scarveron'></div>

The class will help us control the zoom features and the id, as you’ll see, will only tell us what the background image will be.

Now, go over to your CSS document and set up the styling for your class. To start, we’re only doing this:

width: 200px;
height: 200px;
display: block;
background: black;

This should produce a big, black box on your page where the button should be:

Now, using your id, let’s put in a background image. The background image you are using MUST be at least twice the size of the button. In this case, the height and width of the image I’m using is 400px by 400px. I’ve chosen to Photoshop an image from my favorite comic, Scarlet Veronica. You can use whatever you like.

background-image: url("")

Your picture won’t fit quite right, so we need to adjust our zoombtn CSS:

width: 200px;
height: 200px;
display: block;
//background: black;
background-size: cover;
background-position: center center;

Now we’ve got:

But the hover isn’t working yet, so just a little more CSS:

width: 200px;
height: 200px;
display: block;
//background: black;
background-size: cover;
background-position: center center;

.zoombtn:hover {
animation-name: zoomin; // the name of the animation you will be using
animation-duration: .5s; // how long the animation takes to take place
background-size: 400px auto; // this reflects the size of the background image *after* the animation

@keyframes zoomin {
from {background-size: 200px auto;}
to {background-size: 400px auto;}

And you should be all set! For extra styling effects, maybe add a box-shadow or border.

Questions or comments? Hit up that comment box below! Thanks and see you soon!

423 thoughts on “It’s Trendy! How to Make a Zoom Hover Button for the Web Without JavaScript

  1. Pingback: warfarin 1mg uk
  2. Pingback: viagra only 0.2$
  3. Pingback: loratadine coupon
  4. Pingback: buy cialis online
  5. Pingback: tadalafil generic
  6. Pingback: cephalexin uk
  7. Pingback: cefuroxime tablets
  8. Pingback: irbesartan otc
  9. Pingback: order viagra
  10. Pingback: donepezil tablets
  11. Pingback: buy leflunomide
  12. Pingback: cost of meclizine
  13. Pingback: glimepiride cheap
  14. Pingback: buy tadalafil
  15. Pingback: sildenafil usa
  16. Pingback: zyloprim coupon
  17. Pingback: zovirax purchase
  18. Pingback: wellbutrin cheap
  19. Pingback: buy toprol
  20. Pingback: how to get viagra
  21. Pingback: tenormin pills
  22. Pingback: cost of spiriva
  23. Pingback: online viagra
  24. Pingback: skelaxin cost
  25. Pingback: seroquel purchase
  26. Pingback: rogaine 5% tablet
  27. Pingback: allegra 5 tablets
  28. Pingback: reglan uk
  29. Pingback: pulmicort otc
  30. Pingback: proscar uk
  31. Pingback: cheap viagra
  32. Pingback: procardia nz
  33. Pingback: viagra
  34. Pingback: prilosec cost
  35. Pingback: prevacid coupon
  36. Pingback: plaquenil generic
  37. Pingback: Zovirax
  38. Pingback: sildenafil citrate
  39. Pingback: best ed drugs
  40. Pingback: generic pills
  41. Pingback: where to buy lopid
  42. Pingback: levaquin pills
  43. Pingback: viagra for sale
  44. Pingback: imuran price
  45. Pingback: published here
  46. Pingback: viagra discount
  47. Pingback: buy imitrex
  48. Pingback: daily cialis
  49. Pingback: imdur for sale
  50. Pingback: generic viagra
  51. Pingback: cialis daily
  52. Pingback: cialis order
  53. Pingback: hyzaar coupon
  54. Pingback: order geodon 80 mg
  55. Pingback: generic Cipro
  56. Pingback: cheapest dramamine
  57. Pingback: doxycycline cost
  58. Pingback: generic viagra
  59. Pingback: differin 15g cheap
  60. Pingback: how to buy diamox
  61. Pingback: depakote generic
  62. Pingback: good thesis
  63. Pingback: cymbalta pills
  64. Pingback: viagra
  65. Pingback:
  66. Pingback: generic cialis
  67. Pingback: Free viagra sample
  68. Pingback: clonidine nz
  69. Pingback: cialis price usa
  70. Pingback: cleocin 300mg usa
  71. Pingback: web assign utah
  72. Pingback: buy levitra 20mg
  73. Pingback: inexpensive viagra
  74. Pingback: buy cialis
  75. Pingback: usa personal loans
  76. Pingback: payday loans in ga
  77. Pingback: amoxicillin 775 mg
  78. Pingback: quick loans in md
  79. Pingback: Canadain viagra
  80. Pingback: payday loans nc
  81. Pingback: buy cialis brand
  82. Pingback: how to treat ed
  83. Pingback: accc car insurance
  84. Pingback: aarp car insurance
  85. Pingback: buy cialis canada
  86. Pingback: sr22 insurance
  87. Pingback: cialis online
  88. Pingback: viagra women use
  89. Pingback: slot machines
  90. Pingback: real casino online
  91. Pingback: real online casino
  92. Pingback: rx trust pharm
  93. Pingback: casino slot games
  94. Pingback: online casino usa
  95. Pingback: real money casino
  96. Pingback: viagra
  97. Pingback: rxtrustpharm
  98. Pingback: cephalexin usa
  99. Pingback: canadian drug
  100. Pingback: viagra low price
  101. Pingback: tadalafil
  102. Pingback: viagra half life
  103. Pingback: sildenafil coupons
  104. Pingback: cialis generic
  105. Pingback: cialis
  106. Pingback: cialis soft 20mg
  107. Pingback: benicar 10mg cost
  108. Pingback: generic cialis
  109. Pingback:
  110. Pingback: buy strattera 40mg
  111. Pingback: buy cialis
  112. Pingback: viagra substitute
  113. Pingback: buy viagra
  114. Pingback: lexapro 5 mg otc
  115. Pingback: lasix 100mg price
  116. Pingback: canadian pharmacy
  117. Pingback: viagra prices
  118. Pingback: Cialis 80mg coupon
  119. Pingback: viagra
  120. Pingback: Cialis 10mg canada
  121. Pingback: viagra alternative
  122. Pingback:
  123. Pingback: buy sildenafil
  124. Pingback: buy viagra online
  125. Pingback: Viagra 150mg pills
  126. Pingback: generic viagra
  127. Pingback: generic viagra
  128. Pingback: buy viagra online
  129. Pingback: Yeezys
  130. Pingback: buy sildenafil
  131. Pingback: Timberland
  132. Pingback: UGG
  133. Pingback: Yeezy Shoes
  134. Pingback: Yeezy
  135. Pingback: Timberland Boots
  136. Pingback: Yeezy 350
  137. Pingback: Yeezy
  138. Pingback: buy viagra now
  139. Pingback: generic for viagra
  140. Pingback: cialis buy cialis
  141. Pingback: viagra generic
  142. Pingback: viagra sample
  143. Pingback: viagra price
  144. Pingback: online casinos usa
  145. Pingback: cialis buy
  146. Pingback: 20 cialis
  147. Pingback: generic cialis
  148. Pingback: cialis internet
  149. Pingback: cialis generic
  150. Pingback: viagra for sale
  151. Pingback: cash payday
  152. Pingback: short term loans
  153. Pingback: installment loans
  154. Pingback: buy cialis
  155. Pingback: sildenafil 100mg
  156. Pingback: play casino online
  157. Pingback: levitra vardenafil
  158. Pingback: order vardenafil
  159. Pingback: Viagra or cialis
  160. Pingback: mens ed pills
  161. Pingback: viagra 100mg
  162. Pingback: viagra for sale
  163. Pingback: viagra 50mg
  164. Pingback: generic cialis
  165. Pingback: cialis coupon
  166. Pingback: cialis 20mg price
  167. Pingback: viagra com

Leave a Reply