Today I have learned card in javascript

 Card in javascript:

Card format is an integral piece of material design. The detachment is frequently accomplished by using shadows, which gives the deception of profundity, or slight color contrast. It is a popular decision for news websites, magazine sites, and online journals, which are all presenting the client with ‘depictions’ of stories that they may then decide to tap on to understand more. It is likewise popular for portfolios as it permits a variety of content to be introduced at the same time, however unmistakably. So in this article, we will be discussing the Collection of Card Design which includes Flip and 3D impacts that you can use for your profile card or product card using HTML, CSS, and JavaScript where all of these JS Cards Example will be provided along with the source code.

<div className="cardcontainer">
        <div className="cardcontainer1">
            <h1>one</h1>
        </div>
        <div className="cardcontainer2">
            <h1>two</h1>
        </div>
        <div className="cardcontainer3">
            <h1>three</h1>
        </div>
        <div className="cardcontainer4">
            <h1>four</h1>
        </div>
        <div className="cardcontainer5">
            <h1>five</h1>
        </div>
        <div className="cardcontainer6">
            <h1>six</h1>
            </div>
        <div className="cardcontainer7">
            <h1>seven</h1>
            </div>
        <div className="cardcontainer8">
            <h1>eight</h1>
        </div>
    </div>
        </div>
.cardcontainer {
    display: grid;
    width: 98%;
    grid-template-columns: 1fr 1fr 1fr 1fr ;
    margin: 1%;
    /* margin-left: 9%; */
    /* margin-right: 20%; */
    grid-gap: 50px;
  }
  .cardcontainer > div {
    background-color: #f597e8;
    text-align: center;
    padding: 3px 3px;
    border-radius: 20px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
  }
  @media screen and (max-width: 900px)
  {
.cardcontainer {


    display: flex;
    flex-direction: column;
    width: 80%;
    margin: 1%;
    margin-left: 9%;
    margin-right: 20%;
    grid-gap: 50px;
}
  }
Output:




Comments

Popular posts from this blog

Building a Full-Stack Student Management System with React.js and NestJS

Today I have solved the problem in javascript

Today I have solved problem in javascript