Portfolio block to display your portfolio of client websites, applications or photography on websites and landing pages.

Dependencies

  • Tailwind CSS
  • FontAwesome
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <title>FWR Tailwind CSS Blocks - Portfolio 2</title>

    <!-- Styles -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/1.4.6/tailwind.min.css">
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.9/css/all.css" integrity="sha384-5SOiIsAziJl6AWe0HWRKTXlfcSHKmYV4RBF18PPJ173Kzn7jzMyFuTtk8JA7QQG1" crossorigin="anonymous">

    <!-- Custom style -->
    <link rel="stylesheet" href="style.css">
    
</head>
<body>

    <div class="portfolio-2 py-6 md:py-12">
        <div class="container px-4 mx-auto">

            <div class="md:flex md:justify-center">
                <div class="md:w-10/12 xl:w-8/12 text-center">
                    <h1 class="text-3xl md:text-4xl mb-4">Awesome design for your content</h1>
                    <p class="text-xl font-light">FWR blocks contains a variety of blocks and elements that you can mix and match to create various layouts. FWR blocks follow a similar pattern and design style so you can reuse it in your websites and web applications.</p>
                    <div class="mt-6">
                        <button class="bg-indigo-600 border-2 border-solid border-indigo-600 hover:bg-indigo-700 hover:border-indigo-700 text-white rounded-full py-3 px-8 transition-colors duration-300 mx-2 mt-4">View Portfolio</button>
                        <button class="border-2 border-solid border-indigo-600 text-indigo-600 hover:bg-indigo-600 hover:text-white rounded-full py-3 px-8 transition-colors duration-300 mx-2 mt-4">About FWR blocks</button>
                    </div>
                </div>
            </div>

            <div class="sm:flex sm:flex-wrap sm:-mx-4 mt-6 md:mt-12 pb-6">

                <div class="sm:px-6 sm:w-1/2 lg:w-1/3 mt-8">
                    <div class="portfolio-item mx-auto max-w-sm">
                        <div class="portfolio-img relative overflow-hidden cursor-pointer">
                            <img src="//assets.free-website-resources.com/img/portfolio-7.jpg" alt="portfolio image" class="max-w-full h-auto">
                            <div class="portfolio-hover"></div>
                        </div>
                        <div class="px-1 py-4">
                            <h5 class="font-semibold text-xl text-indigo-600 uppercase">WebMeeting Features</h5>
                            <p class="text-gray-600">FWR blocks are beautifully crafted with creativity, passion and quality.</p>
                        </div>
                    </div>
                </div>

                <div class="sm:px-6 sm:w-1/2 lg:w-1/3 mt-8">
                    <div class="portfolio-item mx-auto max-w-sm">
                        <div class="portfolio-img relative overflow-hidden cursor-pointer">
                            <img src="//assets.free-website-resources.com/img/portfolio-8.png" alt="portfolio image" class="max-w-full h-auto">
                            <div class="portfolio-hover"></div>
                        </div>
                        <div class="px-1 py-4">
                            <h5 class="font-semibold text-xl text-indigo-600 uppercase">Young Bloods</h5>
                            <p class="text-gray-600">FWR blocks bring in a fresh air of art and design in their blocks.</p>
                        </div>
                    </div>
                </div>

                <div class="sm:px-6 sm:w-1/2 lg:w-1/3 mt-8">
                    <div class="portfolio-item mx-auto max-w-sm">
                        <div class="portfolio-img relative overflow-hidden cursor-pointer">
                            <img src="//assets.free-website-resources.com/img/portfolio-9.jpg" alt="portfolio image" class="max-w-full h-auto">
                            <div class="portfolio-hover"></div>
                        </div>
                        <div class="px-1 py-4">
                            <h5 class="font-semibold text-xl text-indigo-600 uppercase">Nike90 Store</h5>
                            <p class="text-gray-600">FWR blocks are reusable code blocks for designers, developers and agencies.</p>
                        </div>
                    </div>
                </div>

                <div class="sm:px-6 sm:w-1/2 lg:w-1/3 mt-8">
                    <div class="portfolio-item mx-auto max-w-sm">
                        <div class="portfolio-img relative overflow-hidden cursor-pointer">
                            <img src="//assets.free-website-resources.com/img/portfolio-10.png" alt="portfolio image" class="max-w-full h-auto">
                            <div class="portfolio-hover"></div>
                        </div>
                        <div class="px-1 py-4">
                            <h5 class="font-semibold text-xl text-indigo-600 uppercase">Women Inventor</h5>
                            <p class="text-gray-600">You can use FWR blocks for personal or commercial purpose with attribution.</p>
                        </div>
                    </div>
                </div>

                <div class="sm:px-6 sm:w-1/2 lg:w-1/3 mt-8">
                    <div class="portfolio-item mx-auto max-w-sm">
                        <div class="portfolio-img relative overflow-hidden cursor-pointer">
                            <img src="//assets.free-website-resources.com/img/portfolio-11.png" alt="portfolio image" class="max-w-full h-auto">
                            <div class="portfolio-hover"></div>
                        </div>
                        <div class="px-1 py-4">
                            <h5 class="font-semibold text-xl text-indigo-600 uppercase">Pomodoro App</h5>
                            <p class="text-gray-600">FWR blocks is the must have tool for designers and developers.</p>
                        </div>
                    </div>
                </div>

                <div class="sm:px-6 sm:w-1/2 lg:w-1/3 mt-8">
                    <div class="portfolio-item mx-auto max-w-sm">
                        <div class="portfolio-img relative overflow-hidden cursor-pointer">
                            <img src="//assets.free-website-resources.com/img/portfolio-12.png" alt="portfolio image" class="max-w-full h-auto">
                            <div class="portfolio-hover"></div>
                        </div>
                        <div class="px-1 py-4">
                            <h5 class="font-semibold text-xl text-indigo-600 uppercase">Glax landing</h5>
                            <p class="text-gray-600">FWR blocks are made with Bootstrap and minimal custom styling.</p>
                        </div>
                    </div>
                </div>

            </div>

        </div>
    </div>
    <!-- /.portfolio-2 -->

    <!-- Scripts -->
</body>
</html>
// Variables
$white: #fff;

// Custom CSS
.portfolio-img {
  border-radius: 1rem;

  img {
    transform: scale(1.05);
    opacity: 1;
    filter: grayscale(70%);
    transition: transform 0.3s, opacity 0.3s, filter 1s;
  }

  &:hover {
    img {
      filter: grayscale(0%);
      transform: scale(1);
      opacity: 1;
    }

    .portfolio-hover {
      &::before {
        transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, 100%, 0);
      }
    }
  }
}

.portfolio-hover {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;

  &::before {
    content: "";
    background-color: rgba($white, 0.5);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, -100%, 0);
    transition: transform 0.6s;
  }
}
.portfolio-img {
  border-radius: 1rem;
}

.portfolio-img img {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
  opacity: 1;
  -webkit-filter: grayscale(70%);
          filter: grayscale(70%);
  -webkit-transition: opacity 0.3s, -webkit-transform 0.3s, -webkit-filter 1s;
  transition: opacity 0.3s, -webkit-transform 0.3s, -webkit-filter 1s;
  transition: transform 0.3s, opacity 0.3s, filter 1s;
  transition: transform 0.3s, opacity 0.3s, filter 1s, -webkit-transform 0.3s, -webkit-filter 1s;
}

.portfolio-img:hover img {
  -webkit-filter: grayscale(0%);
          filter: grayscale(0%);
  -webkit-transform: scale(1);
          transform: scale(1);
  opacity: 1;
}

.portfolio-img:hover .portfolio-hover::before {
  -webkit-transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, 100%, 0);
          transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, 100%, 0);
}

.portfolio-hover {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.portfolio-hover::before {
  content: "";
  background-color: rgba(255, 255, 255, 0.5);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  -webkit-transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, -100%, 0);
          transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, -100%, 0);
  -webkit-transition: -webkit-transform 0.6s;
  transition: -webkit-transform 0.6s;
  transition: transform 0.6s;
  transition: transform 0.6s, -webkit-transform 0.6s;
}

Similar Blocks

aHR0cHM6Ly9mcmVlLXdlYnNpdGUtcmVzb3VyY2VzLmNvbS9ibG9ja3MvdGFpbHdpbmRjc3MvcG9ydGZvbGlvL3BvcnRmb2xpby0y