Не знаю как сверстать не размытую длинную тень от изображения

190
11 октября 2018, 03:30

У меня недостаточно знаний, как сверстать такой элемент, добрая душа, скажи и покажи код, буду очень сильно благодарен.

Answer 1

Косая линия:

body { 
  overflow-x: hidden; 
} 
 
.section-one { 
  background-color: #5FC18B; 
  position: relative; 
  padding: 200px 0 350px; 
} 
 
.section-one .section-one__title { 
  color: #fff; 
  font-size: 35px; 
  margin-bottom: 30px; 
  text-align: center; 
} 
 
.section-one .section-one__descr { 
  color: #fff; 
  font-size: 16px; 
  line-height: 1.5; 
  max-width: 300px; 
  margin: 0 auto; 
  text-align: center; 
} 
 
.section-two { 
  background-color: #44a36f; 
  padding: 100px 0 200px; 
  position: relative; 
  z-index: 10; 
} 
 
.section-two .section-two__title { 
  color: #fff; 
  font-size: 35px; 
  margin-bottom: 30px; 
  text-align: center; 
} 
 
.section-two .section-two__descr { 
  color: #fff; 
  font-size: 16px; 
  line-height: 1.5; 
  max-width: 300px; 
  margin: 0 auto; 
  text-align: center; 
} 
 
 
/* ------------------------------------------------------------------------- 
   begin Separator 
 * ------------------------------------------------------------------------- */ 
 
.separator { 
  bottom: -4px; 
  left: 0; 
  overflow: hidden; 
  position: absolute; 
  width: 100%; 
} 
 
 
/* ------------------------------------------------------------------------- 
   end Separator 
 * ------------------------------------------------------------------------- */
<link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css" rel="stylesheet" /> 
 
<div class="section-one"> 
  <h2 class="section-one__title">Awesome Section - 1</h2> 
  <p class="section-one__descr">Not far stuff she think the jokes. Going as by do known noise he wrote round leave. Warmly put branch people narrow see. Winding its waiting yet parlors married own feeling. Marry fruit do spite jokes an times. Whether at it unknown warrant herself 
    winding if. Him same none name sake had post love. An busy feel form hand am up help. Parties it brother amongst an fortune of. Twenty behind wicket why age now itself ten.</p> 
  <!-- begin Separator --> 
  <div class="separator"> 
    <svg class="separator__svg" width="100%" height="400" viewBox="0 0 100 100" preserveAspectRatio="none" fill="#44A36F" version="1.1" xmlns="http://www.w3.org/2000/svg"> 
       <path d="M 100 100 V 10 L 0 100"/> 
       <path d="M 30 73 L 100 18 V 10 Z" fill="#308355" stroke-width="0"/> 
      </svg> 
  </div> 
  <!-- end Separator --> 
</div> 
<div class="section-two"> 
  <h2 class="section-two__title">Awesome Section - 2</h2> 
  <p class="section-two__descr">From they fine john he give of rich he. They age and draw mrs like. Improving end distrusts may instantly was household applauded incommode. Why kept very ever home mrs. Considered sympathize ten uncommonly occasional assistance sufficient not. Letter 
    of on become he tended active enable to. Vicinity relation sensible sociable surprise screened no up as.</p> 
</div>

Длинная тень:

body { 
  //background: #1d1e25; 
  background: url('http://imageshack.us/a/img4/1102/zgsc.jpg') no-repeat 0px -250px; 
  font-family: Verdana; 
  color: #FFF; 
} 
 
a { 
  color: #9a9a9a; 
  text-decoration: none; 
} 
 
.container { 
  padding-top: 50px; 
  text-align: center; 
  line-height: 50px; 
  font-size: 12px; 
} 
 
.icon { 
  height: 200px; 
  width: 200px; 
  font-size: 205px; 
  line-height: 160px; 
  text-align: center; 
  color: #FFF; 
  border-radius: 6px; 
  background-color: #36afe1; 
  box-shadow: #215b83 0px 5px 0px 0px; 
  text-shadow: 1px 1px #1e89ce, 2px 2px #1e89ce, 3px 3px #1e89ce, 4px 4px #1e89ce, 5px 5px #1e89ce, 6px 6px #1e89ce, 7px 7px #1e89ce, 8px 8px #1e89ce, 9px 9px #1e89ce, 10px 10px #1e89ce, 11px 11px #1e89ce, 12px 12px #1e89ce, 13px 13px #1e89ce, 14px 14px #1e89ce, 15px 15px #1e89ce, 16px 16px #1e89ce, 17px 17px #1e89ce, 18px 18px #1e89ce, 19px 19px #1e89ce, 20px 20px #1e89ce, 21px 21px #1e89ce, 22px 22px #1e89ce, 23px 23px #1e89ce, 24px 24px #1e89ce, 25px 25px #1e89ce, 26px 26px #1e89ce, 27px 27px #1e89ce, 28px 28px #1e89ce, 29px 29px #1e89ce, 30px 30px #1e89ce, 31px 31px #1e89ce, 32px 32px #1e89ce, 33px 33px #1e89ce, 34px 34px #1e89ce, 35px 35px #1e89ce, 36px 36px #1e89ce, 37px 37px #1e89ce, 38px 38px #1e89ce, 39px 39px #1e89ce, 40px 40px #1e89ce, 41px 41px #1e89ce, 42px 42px #1e89ce, 43px 43px #1e89ce, 44px 44px #1e89ce, 45px 45px #1e89ce, 46px 46px #1e89ce, 47px 47px #1e89ce, 48px 48px #1e89ce, 49px 49px #1e89ce, 50px 50px #1e89ce, 51px 51px #1e89ce, 52px 52px #1e89ce, 53px 53px #1e89ce, 54px 54px #1e89ce, 55px 55px #1e89ce, 56px 56px #1e89ce, 57px 57px #1e89ce, 58px 58px #1e89ce, 59px 59px #1e89ce, 60px 60px #1e89ce, 61px 61px #1e89ce, 62px 62px #1e89ce, 63px 63px #1e89ce, 64px 64px #1e89ce, 65px 65px #1e89ce, 66px 66px #1e89ce, 67px 67px #1e89ce, 68px 68px #1e89ce, 69px 69px #1e89ce, 70px 70px #1e89ce, 71px 71px #1e89ce, 72px 72px #1e89ce, 73px 73px #1e89ce, 74px 74px #1e89ce, 75px 75px #1e89ce, 76px 76px #1e89ce, 77px 77px #1e89ce, 78px 78px #1e89ce, 79px 79px #1e89ce, 80px 80px #1e89ce, 81px 81px #1e89ce, 82px 82px #1e89ce, 83px 83px #1e89ce, 84px 84px #1e89ce, 85px 85px #1e89ce, 86px 86px #1e89ce, 87px 87px #1e89ce, 88px 88px #1e89ce, 89px 89px #1e89ce, 90px 90px #1e89ce, 91px 91px #1e89ce, 92px 92px #1e89ce, 93px 93px #1e89ce, 94px 94px #1e89ce, 95px 95px #1e89ce, 96px 96px #1e89ce, 97px 97px #1e89ce, 98px 98px #1e89ce, 99px 99px #1e89ce, 100px 100px #1e89ce, 101px 101px #1e89ce, 102px 102px #1e89ce, 103px 103px #1e89ce, 104px 104px #1e89ce, 105px 105px #1e89ce, 106px 106px #1e89ce, 107px 107px #1e89ce, 108px 108px #1e89ce, 109px 109px #1e89ce, 110px 110px #1e89ce, 111px 111px #1e89ce, 112px 112px #1e89ce, 113px 113px #1e89ce, 114px 114px #1e89ce, 115px 115px #1e89ce, 116px 116px #1e89ce, 117px 117px #1e89ce, 118px 118px #1e89ce, 119px 119px #1e89ce, 120px 120px #1e89ce, 121px 121px #1e89ce, 122px 122px #1e89ce, 123px 123px #1e89ce, 124px 124px #1e89ce, 125px 125px #1e89ce, 126px 126px #1e89ce, 127px 127px #1e89ce, 128px 128px #1e89ce, 129px 129px #1e89ce, 130px 130px #1e89ce, 131px 131px #1e89ce, 132px 132px #1e89ce, 133px 133px #1e89ce, 134px 134px #1e89ce, 135px 135px #1e89ce, 136px 136px #1e89ce, 137px 137px #1e89ce, 138px 138px #1e89ce, 139px 139px #1e89ce, 140px 140px #1e89ce, 141px 141px #1e89ce, 142px 142px #1e89ce, 143px 143px #1e89ce, 144px 144px #1e89ce, 145px 145px #1e89ce, 146px 146px #1e89ce, 147px 147px #1e89ce, 148px 148px #1e89ce, 149px 149px #1e89ce, 150px 150px #1e89ce, 151px 151px #1e89ce, 152px 152px #1e89ce, 153px 153px #1e89ce, 154px 154px #1e89ce, 155px 155px #1e89ce, 156px 156px #1e89ce, 157px 157px #1e89ce, 158px 158px #1e89ce, 159px 159px #1e89ce, 160px 160px #1e89ce, 161px 161px #1e89ce, 162px 162px #1e89ce, 163px 163px #1e89ce, 164px 164px #1e89ce, 165px 165px #1e89ce, 166px 166px #1e89ce, 167px 167px #1e89ce, 168px 168px #1e89ce, 169px 169px #1e89ce, 170px 170px #1e89ce, 171px 171px #1e89ce, 172px 172px #1e89ce, 173px 173px #1e89ce, 174px 174px #1e89ce, 175px 175px #1e89ce, 176px 176px #1e89ce, 177px 177px #1e89ce, 178px 178px #1e89ce, 179px 179px #1e89ce, 180px 180px #1e89ce, 181px 181px #1e89ce, 182px 182px #1e89ce, 183px 183px #1e89ce, 184px 184px #1e89ce, 185px 185px #1e89ce, 186px 186px #1e89ce, 187px 187px #1e89ce, 188px 188px #1e89ce, 189px 189px #1e89ce, 190px 190px #1e89ce, 191px 191px #1e89ce, 192px 192px #1e89ce, 193px 193px #1e89ce, 194px 194px #1e89ce, 195px 195px #1e89ce, 196px 196px #1e89ce, 197px 197px #1e89ce, 198px 198px #1e89ce, 199px 199px #1e89ce, 200px 200px #1e89ce; 
  margin: 0 auto; 
  overflow: hidden; 
}
<div class="container"> 
  <div class="icon">♣</div> 
</div>

Answer 2

Попробуй вырезать в фотошопе елемент вместе с тенью, такая же схема с полоской - вырезаешь картинку с полоской и ставиш через background фоном. :)

READ ALSO
Как скачать отрезок из видео на youtube?

Как скачать отрезок из видео на youtube?

Онлайн сервисы не нашел,попробовал сделать так:

179
Вывести простые числа циклом while [закрыт]

Вывести простые числа циклом while [закрыт]

Помогите, пожалуйста, выполнить задание (если можно, то с подробными комментариями): С помощью цикла while вывести все простые числа в промежутке...

288