Preview-Card (Vue.js Flip Cards)

The preview-card is a vuejs flip card component that automatically handles overflow. You can add the component to your project
by running ‘npm install –save preview-card’.

CAT

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ornare mi eu auctor fermentum. Praesent enim mi, volutpat
eu tempus et, ultricies et nisl. In tincidunt mi in laoreet fermentum. Proin in eleifend tortor. Fusce feugiat
fringilla enim, sed cursus neque laoreet vel. Orci varius natoque penatibus et magnis dis parturient montes,
nascetur ridiculus mus. Integer aliquet nulla et magna ultricies, eu mollis enim maximus. In hac habitasse platea
dictumst. Etiam rhoncus pharetra neque. Nunc fermentum, nulla id mattis tincidunt, ante metus gravida augue,
vel ultricies nisl justo quis metus. Duis ultricies sed lacus quis cursus. Vestibulum non nulla purus. Donec
vitae eros lacinia, feugiat ante ut, fermentum sem. Aliquam sed lectus maximus, luctus elit vitae, facilisis
justo. Nullam velit massa, vehicula ac rutrum sed, lacinia sit amet tortor. Sed consectetur mattis eros. Etiam
quis ante vestibulum, efficitur arcu nec, congue nulla. Proin sit amet mauris ut nulla finibus laoreet eu sit
amet eros. Donec porttitor fermentum mauris sed viverra. Duis viverra tellus in risus elementum laoreet sed vitae
eros. Suspendisse sed ipsum eget velit luctus ultricies. Suspendisse commodo, tortor sit amet bibendum aliquam,
libero arcu dignissim ipsum, non hendrerit eros tortor vel mi. Fusce auctor ante vel sapien hendrerit, ut ornare
enim venenatis. Vivamus vel massa non risus commodo finibus id ac diam. Maecenas sit amet tortor id erat faucibus
rutrum. Sed luctus, sapien sed dictum tincidunt, diam quam cursus enim, vel condimentum ipsum augue nec libero.
Maecenas vitae scelerisque ligula. Integer ut vehicula tellus.

Once you have installed the preview-card via npm, add content to the front and back slots. The component will automatically
handle displaying content on the front and will ‘flip’ to display content on the back when hovered or clicked.

This behavior (flip on hover) is modifiable via the flip-on-hover prop. Set flip-on-hover to false and the card will only
flip when the user clicks the card. While you are not required to set a width and height, it’s typically best to
do so as the preview-card looks best when front and back are the same size. Simply set the width and height props
and you’re good to go!

The preview-card was written in TypeScript and was intended to be flexible. Nearly all styling is accomplished by adding
content in the front or back slots. Any additional styling that needs to be modified can be done by overriding the
following classes: preview-card-front, preview-card-back summary-mask, summary-content and summary-button For more
information, please see: http:github.com/wakecoder If you use the preview-card flip card, please let us know on our
blog:
www.wakecoder.com or on twitter
@wakecoder

DOG

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ornare mi eu auctor fermentum. Praesent enim mi, volutpat
eu tempus et, ultricies et nisl. In tincidunt mi in laoreet fermentum. Proin in eleifend tortor. Fusce feugiat
fringilla enim, sed cursus neque laoreet vel. Orci varius natoque penatibus et magnis dis parturient montes,
nascetur ridiculus mus. Integer aliquet nulla et magna ultricies, eu mollis enim maximus. In hac habitasse platea
dictumst. Etiam rhoncus pharetra neque. Nunc fermentum, nulla id mattis tincidunt, ante metus gravida augue,
vel ultricies nisl justo quis metus. Duis ultricies sed lacus quis cursus. Vestibulum non nulla purus. Donec
vitae eros lacinia, feugiat ante ut, fermentum sem. Aliquam sed lectus maximus, luctus elit vitae, facilisis
justo. Nullam velit massa, vehicula ac rutrum sed, lacinia sit amet tortor. Sed consectetur mattis eros. Etiam
quis ante vestibulum, efficitur arcu nec, congue nulla. Proin sit amet mauris ut nulla finibus laoreet eu sit
amet eros. Donec porttitor fermentum mauris sed viverra. Duis viverra tellus in risus elementum laoreet sed vitae
eros. Suspendisse sed ipsum eget velit luctus ultricies. Suspendisse commodo, tortor sit amet bibendum aliquam,
libero arcu dignissim ipsum, non hendrerit eros tortor vel mi. Fusce auctor ante vel sapien hendrerit, ut ornare
enim venenatis. Vivamus vel massa non risus commodo finibus id ac diam. Maecenas sit amet tortor id erat faucibus
rutrum. Sed luctus, sapien sed dictum tincidunt, diam quam cursus enim, vel condimentum ipsum augue nec libero.
Maecenas vitae scelerisque ligula. Integer ut vehicula tellus.

Vuejs is an excellent JavaScript framework that has a simple and extensible API. Its popularity has been growing significantly
in the last several years. It has become one of the top three front-end JavaScript frameworks (Angular and React
being the other two)

The preview-card is a VueJs flip card component that allows you to add custom content to the front and back sides of the
card. You can add content to the back of the card without concern for overflow. If you add more content than the
card can display, a small banner is displayed at the button of the card along with a ‘more’ button

Clicking the ‘more’ button causes a srollable modal to appear that contains all of the content. This is useful in many situations.
For example, ‘about us’ tiles where the front is a picture and the back is a lengthy bio. Or, any situation where
you want to provide more information on a particular topic and don’t have enough space to display all of the content.

Additional Options

One-sided

If you do not set any content in the front slot, the preview-card will display a tile with a ‘more’ button and scrolling
modal when cotent overflows.

Props

  • width – specifies the width of the card (pixels or percent)
  • height – specifies the height of the card (pixels or percent)
  • flip-on-hover – specifies whether the preview-card flip card should flip when the mouse passes over the
    card

You can find more information and examples of how to use the preview-card flip card below or by visiting the
wakecoder github page

Click Here

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ornare mi eu auctor fermentum. Praesent enim mi, volutpat
eu tempus et, ultricies et nisl. In tincidunt mi in laoreet fermentum. Proin in eleifend tortor. Fusce feugiat
fringilla enim, sed cursus neque laoreet vel. Orci varius natoque penatibus et magnis dis parturient montes,
nascetur ridiculus mus. Integer aliquet nulla et magna ultricies, eu mollis enim maximus. In hac habitasse platea
dictumst. Etiam rhoncus pharetra neque. Nunc fermentum, nulla id mattis tincidunt, ante metus gravida augue,
vel ultricies nisl justo quis metus. Duis ultricies sed lacus quis cursus. Vestibulum non nulla purus. Donec
vitae eros lacinia, feugiat ante ut, fermentum sem. Aliquam sed lectus maximus, luctus elit vitae, facilisis
justo. Nullam velit massa, vehicula ac rutrum sed, lacinia sit amet tortor. Sed consectetur mattis eros. Etiam
quis ante vestibulum, efficitur arcu nec, congue nulla. Proin sit amet mauris ut nulla finibus laoreet eu sit
amet eros. Donec porttitor fermentum mauris sed viverra. Duis viverra tellus in risus elementum laoreet sed vitae
eros. Suspendisse sed ipsum eget velit luctus ultricies. Suspendisse commodo, tortor sit amet bibendum aliquam,
libero arcu dignissim ipsum, non hendrerit eros tortor vel mi. Fusce auctor ante vel sapien hendrerit, ut ornare
enim venenatis. Vivamus vel massa non risus commodo finibus id ac diam. Maecenas sit amet tortor id erat faucibus
rutrum. Sed luctus, sapien sed dictum tincidunt, diam quam cursus enim, vel condimentum ipsum augue nec libero.
Maecenas vitae scelerisque ligula. Integer ut vehicula tellus.