CSS: Sticky notes using CSS3 and Google Fonts

 

<!DOCTYPE html>
<html>  
  <head>
    <metaCharset="utf-8" />
		<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
	  <meta http-equiv="X-UA-Compatible" content="ie=edge">	  
    <title>Sticky notes using CSS3 and Google Fonts</title>
    <link href="http://fonts.googleapis.com/css?family=Reenie+Beanie:regular" rel="stylesheet" type="text/css">
 <style type="text/css">
*{
  margin:0;
  padding:0;
}

body{
  font-family:arial,sans-serif;
  font-size:100%;
  margin:3em;
  background:rgba(0,0,0,0.2);
  color:#fff;
}

h2, p{
  font-size:100%;
  font-weight:normal;
}

ul{
  overflow:hidden;
  padding:3em;
}

ul,li{
  list-style:none;
  margin:1em;
  float:left;
}

ul li a{
  text-decoration:none;
  color:#000;
  background:#ffc;
  display:block;
  height:10em;
  width:10em;
  padding:1em;
  -moz-box-shadow:5px 5px 7px rgba(33,33,33,1);
  -webkit-box-shadow: 5px 5px 7px rgba(33,33,33,.7);
  box-shadow: 5px 5px 7px rgba(33,33,33,.7);
  -moz-transition:-moz-transform .15s linear;
  -o-transition:-o-transform .15s linear;
  -webkit-transition:-webkit-transform .15s linear;
  -webkit-transform: rotate(-6deg);
  -o-transform: rotate(-6deg);
  -moz-transform:rotate(-6deg);
}
ul li h2{
  font-size:140%;
  font-weight:bold;
  padding-bottom:10px;
}
ul li p{
  font-family:"Reenie Beanie",arial,sans-serif;
  font-size:180%;
}

ul li:nth-child(even) a{
  -o-transform:rotate(4deg);
  -webkit-transform:rotate(4deg);
  -moz-transform:rotate(4deg);
  position:relative;
  top:5px;
  background:#cfc;
}

ul li:nth-child(3n) a{
  -o-transform:rotate(-3deg);
  -webkit-transform:rotate(-3deg);
  -moz-transform:rotate(-3deg);
  position:relative;
  top:-5px;
  background:#ccf;
}

ul li:nth-child(5n) a{
  -o-transform:rotate(5deg);
  -webkit-transform:rotate(5deg);
  -moz-transform:rotate(5deg);
  position:relative;
  top:-10px;
}

ul li a:hover,ul li a:focus{
  box-shadow:10px 10px 7px rgba(0,0,0,.7);
  -moz-box-shadow:10px 10px 7px rgba(0,0,0,.7);
  -webkit-box-shadow: 10px 10px 7px rgba(0,0,0,.7);
  -webkit-transform: scale(1.25);
  -moz-transform: scale(1.25);
  -o-transform: scale(1.25);
  position:relative;
  z-index:5;
}
	 
</style>
  </head>  
  <body>
    <h3>Stickynotes example</h3>
    <ul>
      <li>
        <a href="#">
        <h2>Title 1</h2>
        <p>Content 1</p>
      </a>
      </li>
      <li>
        <a href="#">
        <h2>Title 2</h2>
        <p>Content 2</p>
      </a>
      </li>
      <li>
        <a href="#">
        <h2>Title 3</h2>
        <p>Content 3</p>
      </a>
      </li>
      <li>
        <a href="#">
        <h2>Title 4</h2>
        <p>Content 4</p>
      </a>
      </li>
      <li>
        <a href="#">
        <h2>Title 5</h2>
        <p>Content 5</p>
      </a>
      </li>
      <li>
        <a href="#">
        <h2>Title 6</h2>
        <p>Content 6</p>
      </a>
      </li>
      <li>
        <a href="#">
        <h2>Title 7</h2>
        <p>Content 7</p>
      </a>
      </li>
      <li>
        <a href="#">
          <h2>Title 8</h2>
          <p>Content 8</p>
        </a>
      </li>
      <li>
        <a href="#">
          <h2>Title 9</h2>
          <p>Content 9</p>
        </a>
      </li>
      <li>
        <a href="#">
        <h2>Title 10</h2>
        <p>Content 10</p>
      </a>
      </li>
    </ul>
  </body>

</html>

  

 50+ Free Responsive Website Templates Built With Bootstrap, CSS3 & HTML5 (themefisher.com)

https://themefisher.com/free-responsive-website-templates-html5-css3

https://demo.themefisher.com/bizcraft/portfolio-classic.html

posted @ 2022-11-03 16:27  ®Geovin Du Dream Park™  阅读(37)  评论(0)    收藏  举报