Coder Social home page Coder Social logo

flippr's Introduction

Flippr

alt text

A small Vue component for easily implementing flipping tiles

Examples

Flipper Example 1

Motivation

I just needed some nice-looking entry points for my website. Just putting links on the navbar was not enough. Several iterations of discussion with my colleagues later, we came up with tiles, which flip, while hovering over them.

Screenshots

alt text

alt text

Framework used

Features

  • Flipping Tile with
    • Frontside
    • Backside
    • Flipping Event
    • Easy to integrate
    • Easy to customize
    • Only inline CSS

Usage

The Flippr component creates a flipping link. You need a front template and a back template tag:

  <flippr>
    <template slot="front">
      <!--
      this goes to the front side
      -->
    </template>
    <template slot="back">
      <!--
      this goes to the back side
      -->
    </template>
  </flippr>

Props/HTML-attributes

You can customize your Flipprs by setting Props/HTML-attributes:

<flippr your-props=here>
  
</flippr>

Valid attributes are:

Name What it does Default Datatype
width defines the width of the flipping tile 500 Number (String might be working, too)
height defines the height of the flipping tile 300 Number (String might be working, too)
unit in which unit the width and height is defined px String
link Where does the tile lead to # String
front-font-mult The font of the front side is defined by the (height * front-font-mult) / 20 8 Number (String might be working, too)
back-font-mult The font of the back side is defined by the (height * back-font-mult) / 30 4 Number (String might be working, too)
front-color Background-color of the front side and border color of back side #4CAF50 String
back-color Background-color of the back side and border color of the front side #FFFFFF String
is-disabled the pointer will be set to 'not-allowed' and the opacity of the back side is 0.6 false Boolean

Credits

Licence

GPL3 © r-mllr

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.