Create a card layout that let your user flip through it like you see on Google Tips

Overview

#Tip Cards by Pete R. Create an animated card layout that let your viewer flip through it like you see on Google Tips Page.

Created by Pete R., Founder of BucketListly

Demo

View demo

Compatibility

Modern browsers such as Chrome, Firefox, and Safari on desktop have been tested. I have not tested this on IE.

Basic Usage

Tip Cards plugin let you create a layout of cards with a card-like interaction that you see on Google Tips Page. I've also added several new animation options so that you can personalize it to your own liking.

To add this to your website, all you have to do is include the latest jQuery library together with jquery.tip_cards.js and tip_cards.css into your document's <head>, and follow the HTML markup as shown below:

2 Sides Flippable HTML Markup

This is the default markup if you are looking to replicate the effect you see on Google Tips Page.

<body>
  ..
  <ul class="tips">
    <li>
      <div class="tc_front">
      	<a href="#tip1">...</a>
      </div>
      <div class="tc_back">...</div>
      <div id="tip1" class="tip">
        <div class="tc_front">...</div>
        <div class="tc_back">...</div>
      </div>
    </li>
  ..
</body>

Note: If you would like the card to be flippable, the html markup above will work perfectly. The content inside tc_front will be the front side of the card and the content inside tc_back will be the back side of the card.

Normal HTML Markup

If you DO NOT want it to be flippable then take out all the tc_front and tc_back as shown below and your card will no longer be flippable.

<body>
  ..
  <ul class="tips">
    <li>
      <a href="#tip1">...</a>
      <div id="tip1" class="tip">
        ...
      </div>
    </li>
  ..
</body>

Once that is done, simply call the function like below and the plugin will automatically detect whether to make the card flippable or not from the markup you provided:

  $(".tips").tip_cards({
    entrance: "bottom", // This option let you determine the direction of the fly in entrance animation when all the cards appears. Available options are "bottom", "left", "right", and "top". The default value is "bottom".
    column: 4, // The plugin also let you define how the card will be displayed and aligned. You can set the column of cards here. The default value is 4. 
    margin: "1%", // You can define the margins between each cards here. Percentage is currently support at this point. The default is "1%".
    selector: "> li", // You can define a custom selector if you do not want to use ul and li tags. This option accepts the normal CSS selector. The default value is "> li" 
    hoverTilt: "right", // Define the tilt direction when cards are hovered here. Available options are "right", "left", "up", and "down". The default value is "right".
    triggerSelector: "> li a", // You can also define a custom selector for the trigger button here. The default value is "> li a" which will use the link inside a list as a trigger to activate the card. 
    cardFlyDirection: "all", // You can define the card fly animation when the modal appears here. Available options are "all", "top", "bottom", "left", and "right". The default value is "all" which will have the cards fly in from all direction and stack up under the opened modal
    closeButton: "X", // You can define the content of the close button here. Change this to false to prevent the plugin from automatically generating the close button. The default string is "X".
    flipButton: "Flip", // You can define the content of the flip button here. Change this to false to prevent the plugin from automatically generating the flip button. The default string is "Flip".
    navigation: true, // Set this to true to allow users to navigate from one card to another when modal is opened. Change it to false to disable it. The default value is true.
    beforeOpen: null, // A callback function that will be executed before the modal opens.
    afterOpen: null // A callback function that will be executed after the modal opens.
  });

Callbacks

You can use callbacks to perform actions before or after the modal opens.

beforeOpen()

This callback will be called called before the modal opens after cards are clicked.

$(".tips").tip_cards({
  beforeOpen: function () {
    ...
  }
});

afterOpen()

This callback will be called called after the modal opens.

$(".tips").tip_cards({
  afterOpen: function () {
    ...
  }
});

Now, what you will have on your website is a gallery of cards that will let users interact in a way that is familiar and rich in experience like you see on Google Tips Page. Thank you for dropping by and if you want to see more of my plugins, visit The Pete Design, or follow me on Twitter and Github.

Other Resources

  • Tutorial (Coming Soon)
You might also like...

See through the observables.

See through the observables.

RxJS Insights RxJS Insights is a toolset that helps you debug the RxJS Observables. ✨ Developer friendly: Easy to setup. Easy to use. ✨ Comprehensive:

Dec 30, 2022

Awsome-Books is an app that let you create a list of books by adding the book name and the author.

This app create a list of books, naming author and title. The lis of books is created dynamicly using javascrtipt, every time the user add a new book on the Add New Section. All the methods and fuctions are separated in modules and imported to the index.js file.

Jul 21, 2022

The ToDoList app let you create a task, added to a list of task, mark it as complete, and delete individual or multiple tasks at the same time

The ToDoList app let you create a task, added to a list of task, mark it as complete, and delete individual or multiple tasks at the same time. The app manipulate the Local-Storag so you can save your tasks there. Built with HTML, CSS and JavaScript. First practice using Webpack, Modules and tests with Jest

Jul 21, 2022

Github Repository for the resources shown in my 8 JavaScript Pro Tips Tutorial in Youtube

Github Repository for the resources shown in my 8 JavaScript Pro Tips Tutorial in Youtube

Part 1 - JavaScript Pro Tips - Learn with Sumit Table of Contents How to run Contact How to run Different lessons taught in the Youtube Tutorial are o

Dec 28, 2022

This is about useful JS tips!

This is about useful JS tips!

JS Tips Useful JavaScript tips This is an awesome project about short and useful JavaScript tips that will allow you to improve your code writing. Wit

Dec 30, 2022

The friendly way to accept tips in ETH.

💸 cryptip.me The friendly way to accept tips in ETH. It's free, and no setup required. cryptip.me/your-ens-or-wallet-address Getting Started Project

Sep 23, 2022

Journeys is a django based community-focused website that allows users to bookmark URLs (through chrome extension) and share their journeys through timelines.

Journeys is a django based community-focused website that allows users to bookmark URLs (through chrome extension) and share their journeys through timelines.

Journeys is a django based community-focused website that allows users to bookmark URLs (through chrome extension) and share their journeys through timelines. A timeline is a collection of links that share a common topic or a journey of building and learning something new. Users can create timelines, share them publicly, and explore resources.

Jun 13, 2022

This tool allows you to test your chains.json file to see if your chains are available, syncing, or in sync.

Chains Tester This tool allows you to test your chains.json file to see if your chains are available, syncing, or in sync. This is an open source tool

Nov 4, 2022
Comments
  • flip doesn't work in IE 11

    flip doesn't work in IE 11

    i understand that this plugin never tested in IE, however, it would be cool if the flip works, cause everything else are working under IE, except that you can never see the "back" side.

    also, the modal card's height is bound to the front side, if the back side has more contents than the front side, it will sneak out from the stack. would be great if the height can be auto-adjusted

    btw, great work!

    opened by joeylu 0
  • License ?

    License ?

    Hello, I can't see if your code is free (like in "free beer") or (even better) open source (like in "free speech").

    All I see is "* Copyright 2013 Pete Rojwongsuriya.

    • http://www.thepetedesign.com"

    But that doesn't mean I could use it in my (free and open source) project :)

    opened by pyg77 1
Rebase.co for German GmbH's. Flip your German GmbH to Delaware to be venture-compatible

???? ???? FlipGmbH Rebase.co for German GmbH's. Flip your German GmbH to a Delaware C-Corp to be compatible for international venture funding. Inspire

Peer Richelsen 16 Aug 19, 2022
📈 AI powered web scraper that let's you scrape anything you want from the web including google search results

AI powered web scraper that let's you scrape anything you want from the web including google web search results from your terminal. And at the same ti

Udhay rajeev 27 Dec 27, 2022
Some ideas for grid to slideshow switch animations using GSAP's Flip plugin.

Grid to Slideshow Switch Animations Some ideas for grid to slideshow switch animations using GSAP's Flip plugin. Article on Codrops Demo Installation

Codrops 31 Jun 22, 2023
Google-Drive-Directory-Index | Combining the power of Cloudflare Workers and Google Drive API will allow you to index your Google Drive files on the browser.

?? Google-Drive-Directory-Index Combining the power of Cloudflare Workers and Google Drive will allow you to index your Google Drive files on the brow

Aicirou 127 Jan 2, 2023
A pokemon card battle app that can evolve them and see their battle history.

BattlePoke ?? About An application of an Pokemon card battle game where each player initially receives 3 cards and can start to battle and gain evolut

Mateus Cruz Rossetto 3 Jun 17, 2022
Chat View let's you quickly and easily create elegant Chat UIs in your Markdown Files.

Obsidian Chat View Plugin Chat View let's you quickly and easily create elegant Chat UIs in your Markdown Files. Usage Every chat message must be pref

Adifyr 96 Dec 27, 2022
Using a RPI 3b+ to create a PT camera accessible through Windows browser and controllable through MQTT

web-camera_PT A Web flask server converts the MJPEG stream from RPI to JPG img using opencv, then display in browser. Controls added to move Camera in

null 11 Dec 20, 2022
Tip Tweet is a hybrid dApp that provides a simple way to tip a tweet using Ethereum. Authors can claim their tips using their Twitter account. You only need the tweet URL to tip. 🚀 😎

Tip Tweet Table of Contents About Folder Structure Contract Deveopment Starting the App Usage Contributing About Tip Tweet is hybrid dApp that allows

Dias Junior 23 Nov 15, 2022
Aron 8 Dec 17, 2022
Lightweight and independent Pinterest-like cascading grid layout library

Bricklayer is a Lightweight and Independent Pinterest-like Cascading Grid Layout Library ?? Simpler than any other cascading grid layout tools. ❄️ Lig

Adem ilter 2.5k Dec 22, 2022