Skip to content

Megabyte

Community Champion & Project Manager

  • About Me
  • Open Source
  • Certifications

If you appreciate my WordPress open source project contributions, please consider donating to my book fund.

If you have web dev work you need help with, check out my services.

If you are a web dev or agency and need PM/sales work, reach out here!

🍉

Tag: jsfiddle

Faux-Cropping Circles with CSS Using background-image

Posted December 27, 2015October 20, 2024

As promised, here is another approach to “cropping” images in CSS circles. It looks almost identical to the other fiddle, but is done a different way. This method is better than the one I described in my previous Snippet Sunday in that the images are actually centered (without the use […]

Category: Web DevelopmentTags: CSS jsfiddle Snippet Sunday

Faux-Cropping Circles with CSS

Posted December 20, 2015October 20, 2024

Here’s a basic jsfiddle I made to illustrate how to crop an image with a CSS circle. Gone are the days of editing photos for this effect (thank goodness). I’m using negative margins to faux-center the images. (Check back next week to see another method of cropping that doesn’t use […]

Category: Web DevelopmentTags: CSS jsfiddle Snippet Sunday

CSS for Transparent Inside Border

Posted November 29, 2015October 20, 2024

Here’s a cool jsfiddle by Chris Coyier I came across one day. It’s kind of like a “floating” border effect with transparency. Transparent Inside Border Pseudo Element

Category: Web DevelopmentTags: CSS jsfiddle Pseudo-element Snippet Sunday

setInterval and clearInterval in JavaScript

Posted November 22, 2015October 20, 2024

Recently I was working on an image slider that I had auto-rotating by using setInterval and clearInterval. The problem I came across was that when a user clicks to show another slider image, the counter variable wasn’t resetting. For example, if image 3 was showing, and the user clicked image […]

Category: Web DevelopmentTags: JavaScript jQuery jsfiddle setInterval Snippet Sunday
Links: GitHub LinkedIn
Content Disclaimer