Giter Site home page Giter Site logo

omidnasri / foxholder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from heirema/foxholder

0.0 2.0 0.0 184 KB

Unique Form Animations Kit

Home Page: http://foxholder.fox-hover.co.uk/

License: MIT License

HTML 44.71% JavaScript 15.86% CSS 39.43%

foxholder's Introduction

Foxholder v.3.0.0

  • Placeholder Animations (input and textareas) - 15 unique demos!
  • Button animations NEW! - 6 nice demos!

View Demo

Foxholder Demo

List of Features

  1. Smooth and professional-looking CSS3 animations for placeholder
  2. 15 unique placeholder effects
  3. 6 button hover effects
  4. Easy to install
  5. Crossbrowser Effects (IE 10+, Safari 9+, FF, Opera, Chrome, Edge)

How to Use

  • Put basic HTML markup:
<form class="your-class">
  .... your inputs and textareas and your submit button (use only <button> tag for it)
</form>
  • Use placeholder attribute and id attribute for inputs and textareas. Also you can use input with type="submit" as a button
<form class="your-class">
    <input id="your-id-1" type="text" placeholder="My Input" />
    <textarea id="your-id-2" placeholder="My Textarea"></textarea>
    <button type="submit">Submit</button>
</form>
  • Customize your button with data-attributes:

    • use data-size attribute to customize a button size (by default it's middle):

      • data-size="sm" - a small button
      • data-size="md" - a middle button
      • data-size="bg" - a big button
    • use data-filled="filled" attribute to create a filled button (it's of 'empty' style by default)

    • use data-direction attribute to add an effect direction (Only for #2 and #3 Button Demo):

data-direction attr value for Button Demo #2 Effect Direction
data-direction="left" or no data-direction attribute Button Demo #2 Left effect
data-direction="right" Button Demo #2 Right effect
data-direction="top" Button Demo #2 Top effect
data-direction="bottom" Button Demo #2 Bottom effect
data-direction attr value for Button Demo #3 Effect Direction
data-direction="vertical" or no data-direction attribute Button Demo #3 Vertical effect
data-direction="horizontal" Button Demo #3 Horizontal effect
data-direction="horz-vert" Button Demo #3 Horizontal and Vertical effect
data-direction="diagonal" Button Demo #3 Diagonal effect

Helps to create small filled button with a Horizontal and Vertical direction of Button Demo #3:

<form class="your-class">
 <button type="submit" data-size="sm" data-filled="filled" data-direction="horz-vert">Submit<button>
</form>
  • Add foxholder-styles.css (from the src folder) in your <head>
<link rel="stylesheet" href="css/foxholder-styles.css" />
  • Add foxholder.min.js from src folder (or foxholder.js if you need a developer version) before closing <body> tag after jQuery init:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="scripts/foxholder.js"></script>
  • Initialize your Foxholder in your script file or an inline script tag
 jQuery('.your-class').foxholder({
    placeholderDemo: 1, // for placeholder demo (1 - 15)
    buttonDemo: 1 //for button demos (1 - 6), if you need a button effect
  });

foxholder's People

Watchers

James Cloos avatar Omid Nasri avatar

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.