concoction

Объявление

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » concoction » ХТМЛ и журнал » новости


новости

Сообщений 1 страница 4 из 4

1

[html]<style>
body{
   padding-top:0px !important;
}

@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro);
@import url(https://fonts.googleapis.com/css?family=Teko:700);
.snip1543 {
  background-color: #fff;
  color: #ffffff;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  margin: 10px;
  max-width: 315px;
  min-width: 230px;
  overflow: hidden;
  position: relative;
  text-align: left;
  width: 100%;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.snip1543 *,
.snip1543 *:before,
.snip1543 *:after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.45s ease;
  transition: all 0.45s ease;
}

.snip1543 img {
  backface-visibility: hidden;
  max-width: 100%;
  vertical-align: top;
}

.snip1543:before,
.snip1543:after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  content: '';
  background-color: #28284e;
  opacity: 0.5;
  -webkit-transition: all 0.45s ease;
  transition: all 0.45s ease;
}

.snip1543:before {
  -webkit-transform: skew(30deg) translateX(-80%);
  transform: skew(30deg) translateX(-80%);
}

.snip1543:after {
  -webkit-transform: skew(-30deg) translateX(-70%);
  transform: skew(-30deg) translateX(-70%);
}

.snip1543 figcaption {
  position: absolute;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
  z-index: 1;
  bottom: 0;
  padding: 25px 40% 25px 20px;
}

.snip1543 figcaption:before,
.snip1543 figcaption:after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #28284e;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  content: '';
  opacity: 0.5;
  z-index: -1;
}

.snip1543 figcaption:before {
  -webkit-transform: skew(30deg) translateX(-100%);
  transform: skew(30deg) translateX(-100%);
}

.snip1543 figcaption:after {
  -webkit-transform: skew(-30deg) translateX(-90%);
  transform: skew(-30deg) translateX(-90%);
}

.snip1543 h3,
.snip1543 p {
  margin: 0;
  opacity: 0;
  letter-spacing: 1px;
}

.snip1543 h3 {
  font-family: 'Teko', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1em;
  text-transform: uppercase;
}

.snip1543 p {
  font-size: 0.9em;
}

.snip1543 a {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

.snip1543:hover h3,
.snip1543.hover h3,
.snip1543:hover p,
.snip1543.hover p {
  -webkit-transform: translateY(0);
  transform: translateY(0);
  opacity: 0.9;
  -webkit-transition-delay: 0.2s;
  transition-delay: 0.2s;
}

.snip1543:hover:before,
.snip1543.hover:before {
  -webkit-transform: skew(30deg) translateX(-20%);
  transform: skew(30deg) translateX(-20%);
  -webkit-transition-delay: 0.05s;
  transition-delay: 0.05s;
}

.snip1543:hover:after,
.snip1543.hover:after {
  -webkit-transform: skew(-30deg) translateX(-10%);
  transform: skew(-30deg) translateX(-10%);
}

.snip1543:hover figcaption:before,
.snip1543.hover figcaption:before {
  -webkit-transform: skew(30deg) translateX(-40%);
  transform: skew(30deg) translateX(-40%);
  -webkit-transition-delay: 0.15s;
  transition-delay: 0.15s;
}

.snip1543:hover figcaption:after,
.snip1543.hover figcaption:after {
  -webkit-transform: skew(-30deg) translateX(-30%);
  transform: skew(-30deg) translateX(-30%);
  -webkit-transition-delay: 0.1s;
  transition-delay: 0.1s;
}
</style>
<script>

/* Demo purposes only */
$(".hover").mouseleave(
  function() {
    $(this).removeClass("hover");
  }
);

</script>

<figure class="snip1543">
  <img src="https://i.pinimg.com/564x/b2/89/5f/b2895f96123b331f5ef29e98fd54ce10.jpg" alt="sample108" />
  <figcaption>
    <h3>Новости</h3>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
  </figcaption>
  <a href="#"></a>
</figure>

[/html]

0

2

[html]
<style>
.canvas-area{
  box-shadow:0 0 10px -2px #999;
  border-radius:5px;
  width:100%;
  height:300px;
  background:cover; background:url(https://i.pinimg.com/originals/6d/ad/78 … 65c970.png);
  overflow:hidden;
  position:relative;
}

#stars-font,#stars-under{
  margin-left:-500px;
  overflow:hidden;
}

</style>
<script>

(function(){
//Canvas initialization
function init() {
starsFont = document.getElementById("stars-font");
ctx = starsFont.getContext("2d");

starsUnder = document.getElementById("stars-under");
ctx2 = starsUnder.getContext("2d");
 
drawAll();
}

//Rendering of canvas
/***************/
function drawAll() {
draw1();
draw2();
}

function draw1(){
ctx.clearRect(0, 0, 5000,300);
for(var i=0;i<5000;i++){
ctx.beginPath();
ctx.arc(Math.random()*5000,10+Math.random()*1000,3*Math.random()*1,0,Math.PI*2,true);
ctx.closePath()
ctx.shadowBlur = 10;
ctx.shadowColor = 'gray';
ctx.fillStyle = '#c6c6f5';
ctx.fill();
}
}

function draw2(){
ctx2.clearRect(0, 0, 5000,300);
for(var i=0;i<700;i++){
ctx2.beginPath();
ctx2.arc(Math.random()*5000,10+Math.random()*1000,3*Math.random()*2,0,Math.PI*2,true);
ctx2.closePath()
ctx2.shadowBlur = 10;
ctx2.shadowColor = 'white';
ctx2.fillStyle = '#c6c6f5';
ctx2.fill();
}
}
init();
/******************/

//Mouse event listener
    var currentPositionX_;
    $('body').mousemove(function(e){
    setTimeout(function(){return currentPositionX_=e.pageX;},1);
    var currentPositionX=e.pageX;
    if(currentPositionX_>currentPositionX){
    $('#stars-font').css("margin-left","+="+3+"px 0");
      $('#stars-under').css("margin-left","+="+2+"px 0");
    $('.canvas-area').css("background-position","+="+1+"px 0");
    }else{
    $('#stars-font').css("margin-left","+="+-3+"px 0");
      $('#stars-under').css("margin-left","+="+-2+"px 0");
    $('.canvas-area').css("background-position","+="+-1+"px 0");
    }   
    });
})();

</script>

<div class="canvas-area">
  <canvas id="stars-font" width="5000" height="600px" style="z-index:2;position:absolute;" ></canvas>
  <canvas id="stars-under" width="5000" height="600px" style="z-index:1;position:absolute;"></canvas>
</div>

[/html]

0

3

[html]
<style>
.page-container {
    width:100%;
    height:100%;
    background-color: #000;
  position:fixed;
 
}
.page-back {
    width:120%;
    height:120%;
    left:-10%;
    top:-10%;
    position: absolute;
    background-image: url(https://ethnomir.ru/upload/medialibrary/b50/art.jpg);
    background-size:cover;
    background-position: center;
    filter:blur(1px);
    -webkit-filter:blur(1px);
}

.text{
  font-family: 'Amatic SC', cursive;
  top:0px;
  width:500px;
  background-color: transparent;
  z-index:2;
  position: relative;
  margin: 0 auto;
  border: 2px solid #fff;
  color:#fff;
  text-align: center;
  font-size: 60px;
  line-height:10px;
 
}
</style>
<script>
$(document).ready(function(){
    var windowWidth = $(window).width();

    $('.page-container ,.text').mousemove(function(event){
        var moveX = (($(window).width() / 2) - event.pageX) * 0.1;
        var moveY = (($(window).height() / 2) - event.pageY) * 0.1;
        $('.page-back').css('margin-left',moveX + 'px');
        $('.page-back').css('margin-top',moveY + 'px');
    });

});

</script>

<div class="page-container">
  <div class="page-back">
   
</div>
</div>

<div class="text">
  <p> Mouse move paralax</p>
    </div>

[/html]

0

4

[hideprofile][html]
<style>
.punbb {
    margin-left: 0px !important; }
.clipped {
  display:flex;
  align-items:flex-end;
  height:100%;
  line-height:1.2;
  overflow:hidden;
  background: url("https://i.pinimg.com/564x/44/55/25/445525f88c146fb71ec496396eda7cb8.jpg") no-repeat #fff;
  background-size: cover;
  color: rgba(255,255,255,0.3);
  font-size: 10em;
  font-family: 'Playfair Display', serif;
  /*-webkit-text-fill-color:transparent;
  -webkit-background-clip: text;
  -webkit-filter: invert(100%) hue-rotate(0deg);
 
  change hue-rotate to play with tint */
}
#title{
  overflow:hidden;
  color:#fff;
  mix-blend-mode:difference;
  padding:0px calc(15% - 20px);
}

.header {
  height: 250px;
  width: 100% - 10px;
  overflow: hidden;
  background: url("https://i.pinimg.com/564x/52/6b/e0/526be09a1233cc0f32fd28431566db3b.jpg") no-repeat #fff;
  background-size: cover;
  margin:20px 20px 0 20px;
  border-radius:8px;
  box-shadow:2px 3px 20px 0 rgba(0,0,0,0.3);
}
.container {
  display: block;
  width: 100%;
  float: left;
  max-width:800px;
}

content{
  display:block;
  padding:30px;
  color:#000;
  opacity:.8;
  padding:30px 15%;
}
h21{
  font-size: 1.1em;
  font-family: 'Raleway', sans-serif;
  font-weight:800;
  letter-spacing:0.5pt;
}
hr{
  margin:10px 0 10px 0;
  width:30px;
  height:6px;
  background-color:#2980b9;
  border:0;
  text-align:left;
}
p{
  font-size: .9em;
  font-family: 'Raleway', sans-serif;
  font-weight:300;
  overflow:hidden;
}
</style>

<div class="container">
  <div class="header">
    <div class="clipped">
      <h1 id="title">Заголовок</h1>
    </div>
  </div>
  <content>
    <h21>This is a subtitle</h21>
    <hr>
    <p>Since a previous update of Google Chrome, this effect is not working anymore like before. I used 'text-fill-color' together with 'background-clip'. Now I changed it to 'mix-blend-mode'. This is alot easier in my opinion. You can still find the "old" version commented out in the CSS.</p>
  </content>
</div>

</div>

[/html]

0


Вы здесь » concoction » ХТМЛ и журнал » новости


Рейтинг форумов | Создать форум бесплатно

*
*
*
*
*
*
*
*
*
*