Skip to content

Instantly share code, notes, and snippets.

View ashleycam3ron's full-sized avatar

Ashley N Cameron ashleycam3ron

View GitHub Profile
@ashleycam3ron
ashleycam3ron / index.html
Created November 11, 2017 02:07
Slider Parallax Effect
<!--
Inspired by Jardson Almeida
https://dribbble.com/shots/2518516-Nike-Promotion-Ads-Parallax-Effect
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Nike Parallax Cards</title>
@ashleycam3ron
ashleycam3ron / get attachment image
Created September 6, 2012 20:11
Wordpress :: get attachment image
<?php
$attachment_id = $page->ID;
$current = get_the_ID();
$attachment = get_post( $attachment_id );
$args = array(
'post_type' => 'attachment',
'post_parent' => $current,
'post_mime_type' => 'image',
'post_status' => null,
'numberposts' => -1,