Skip to content

Instantly share code, notes, and snippets.

View fazlurr's full-sized avatar

Fazlur Rahman fazlurr

View GitHub Profile
@fazlurr
fazlurr / BorderedCircleTransform.java
Last active February 18, 2021 22:29 — forked from berkkaraoglu/BorderedCircleTransform.java
Extend the Picasso transformation class to create bordered circle image with Picasso
import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import com.squareup.picasso.Transformation;
public class CircleTransform implements Transformation {
private final int BORDER_COLOR = Color.WHITE;
@fazlurr
fazlurr / dabblet.css
Created June 22, 2014 14:47 — forked from LeaVerou/dabblet.css
Attempt for Chrome-style progress-indicator with SVG and CSS animations
/**
* Attempt for Chrome-style progress-indicator with SVG and CSS animations
*/
@keyframes spin {
to {
stroke-dashoffset: -264;
}
}
@fazlurr
fazlurr / dabblet.css
Created June 22, 2014 14:47 — forked from LeaVerou/dabblet.css
Standardization status
/**
* Standardization status
*/
body {
background: #f9f7f3;
font-size: 14px;
}
/* Don't copy this rule, it’s just for the demo */
@fazlurr
fazlurr / dabblet.css
Created June 22, 2014 14:44 — forked from LeaVerou/dabblet.css
Flexible Google-style progress indicator
/**
* Flexible Google-style progress indicator
*/
@keyframes progress {
50% { border-width: .5em 0; }
to { border-width: .5em 0 0 0; }
}
@keyframes rotate {
@fazlurr
fazlurr / dabblet.css
Created June 22, 2014 14:44 — forked from LeaVerou/dabblet.css
Sorta conical gradient
/**
* Sorta conical gradient
*/
div {
width: 200px; height: 200px;
border-radius: 50%;
background: grey;
overflow: hidden;
}
@fazlurr
fazlurr / dabblet.css
Created June 22, 2014 14:44 — forked from LeaVerou/dabblet.css
Refactor of the WPD breadcrumbs bar based on the idea by @wernull
/**
* Refactor of the WPD breadcrumbs bar based on the idea by @wernull
*/
ol.breadcrumbs {
margin: 0 0 0 -1.1em;
padding: 0;
height: 1em;
text-transform: uppercase;
float: left;
@fazlurr
fazlurr / dabblet.css
Created June 22, 2014 14:43 — forked from LeaVerou/dabblet.css
CSS transitions on stroke-dasharray
/**
* CSS transitions on stroke-dasharray
*/
circle {
stroke: red;
stroke-width: 10;
stroke-dasharray: 10, 20;
transition: 1s;
}
@fazlurr
fazlurr / dabblet.css
Created June 22, 2014 14:39 — forked from SaraSoueidan/dabblet.css
Loading animation like the one seen on http://www.freeger.com/projects/contextad/ with CSS
/**
* Loading animation like the one seen on http://www.freeger.com/projects/contextad/ with CSS
* Caveat: Not DRY. The content needs to be repeated in a data- attribute (or directly in the CSS).
*/
body {
background: #ccc51c;
min-height: 100%;
}
@fazlurr
fazlurr / dabblet.css
Created June 22, 2014 14:38 — forked from LeaVerou/dabblet.css
Animation on hover (wrong way)
/**
* Animation on hover (wrong way)
*/
div {
width: 9em;
padding: .6em 1em;
margin: 2em auto;
background: yellowgreen;
}
@fazlurr
fazlurr / dabblet.css
Created June 22, 2014 14:38 — forked from LeaVerou/dabblet.css
Animation on hover (right way)
/**
* Animation on hover (right way)
*/
div {
width: 9em;
padding: .6em 1em;
margin: 2em auto;
background: yellowgreen;
animation: spin 1s linear infinite;