Skip to content

Instantly share code, notes, and snippets.

View tboerger's full-sized avatar
:shipit:
Getting mad with crazy stuff

Thomas Boerger tboerger

:shipit:
Getting mad with crazy stuff
  • Cloudpunks GmbH
  • Nuremberg, Germany
  • 19:34 (UTC +02:00)
  • X @tboerger
View GitHub Profile
version: '2.1'
volumes:
files:
driver: local
mysql:
driver: local
backup:
driver: local
redis:
@tboerger
tboerger / main.go
Created April 30, 2017 16:22
Restapi with mgo ang go gin-gonic
I can't seem to findout how to use go gin-gonic to perform CRUD or GET, PUT and POST with MongoDB
Below is my code, please Kindly assist me
package main
import (
//"encoding/json"
"fmt"
"log"

Direction-aware 3D hover effect

After seeing this site http://fitzfitzpatrick.com/ I decided to give a try to the "direction-aware hover effect". My first thought was to do it with a pure CSS, not too late I changed my mind and decided to use JS (I need to sleep anyway).

It's kind of simple, using JS we can easily detect the direction the cursor is coming, then, I am using CSS animations for each case (8 in total).

A Pen by Noel Delgado on CodePen.

License.