Skip to content

Instantly share code, notes, and snippets.

View xirclebox's full-sized avatar
:octocat:

Homer Gaines, CPACC xirclebox

:octocat:
View GitHub Profile
@xirclebox
xirclebox / fade.css
Created July 21, 2026 21:39
CSS fade in-out animation
/* CSS I used to fade in / out the text on my personal site */
p,
ul,
h1,
h2,
h3 {
opacity: 0;
transform: translateY(1rem);
@xirclebox
xirclebox / alias.txt
Created February 16, 2026 23:53
Local Alias Config
# Git
alias add="git add ."
alias abort="git merge --abort"
alias branch="git branch"
alias burn="git branch -D"
alias co="git checkout "
alias com="git commit -m "
alias clone="git clone "
alias dot="git checkout ."
alias dash="git checkout -"
@xirclebox
xirclebox / CodepenTheme.css
Created November 28, 2020 23:31
Codepen Theme
@import url("https://fonts.googleapis.com/css2?family=Lato&display=swap");
$speed: 0.25s;
$border-radius: 24px;
$light: #e5efe9;
$mid: #93a4cf;
$dark: #121943;
$box-shadow: -20px 20px 35px 1px rgba(10, 49, 86, 0.18);
$focus-ring: 0px 0px 0px 2px $dark;
@xirclebox
xirclebox / a11yComp
Last active November 21, 2019 06:24
Accessible form element component
❌ Bad example of a button component.
While this example technically works, it's not semantically correct.
To accommodate tabbed navigation, you'll need to add a tab-index="0" to make this button focusable.
[...]
return (
<div>
<span role=”button”>Click</span>
</div>
);
@xirclebox
xirclebox / a11yElements.txt
Last active November 21, 2019 05:03
Accessible form elements
❌ Bad example of an input field
<input type="text" id="firstname" name="firstname">
✔️ Good Example of an input field using an explicit label.
<label for="firstname">First name</label>
<input type="text" id="firstname" name="firstname">
✔️ Good Example of an input field an implicit label.
<label for="firstname">
First name
@xirclebox
xirclebox / alt-text.html
Last active November 21, 2019 06:22
Text descriptions for images
❌ Bad example of how to add an image.
<img src="bamboo-grove.jpg">
✔️ Good example of how to add an image using the "alt" attribute.
<img src="bamboo-grove.jpg" alt="Image of the bamboo grove in Arashiyama">
✔️ Good example of how to add an image using the "longdesc" attribute.
@xirclebox
xirclebox / aria-label.html
Last active November 21, 2019 06:20
Aria Label Example
❌ Bad example of a simple close button.
<button type="button"> X </button>
✔️ Good example of the same close button with an aria-label to provide more context.
<button aria-label="Close modal"> X </button>
@xirclebox
xirclebox / Blurred-Dots.markdown
Created September 25, 2013 09:15
A Pen by Homer Gaines.