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!

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

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

Leave a Reply