.back { background: rgba(0, 0, 0, 0) url("/images/ozadje-gore.jpg") no-repeat scroll center center / cover ; height: 100vh; position: fixed; width: 100%; top:0; opacity:0.8; } .content { position:relative; z-index:1; } /*#piveWrapp { display: flex; margin-top: calc(70vh - 35%); }*/ #piveWrapp { padding: 10% 0 6%; position: relative; } #piveWrapp > div { display: -webkit-box;display: -ms-flexbox;display: flex; margin:0 auto; -ms-flex-wrap:wrap;flex-wrap:wrap; -webkit-box-pack: center;-ms-flex-pack: center;justify-content: center; } #piveWrapp a { position: relative; width:50%; text-align:center; padding: 0 2%; } .produktIme { color: #000; font-size: 18px; font-weight: 900; position:relative; bottom:40px; } #piveWrapp a .produktImgWrapp { transition: all 250ms cubic-bezier(0.455, 0.030, 0.515, 0.955); display:block; max-width: 80px; margin:0 auto; } .produktImgWrapp img { width: 100%; } @media (min-width: 768px) { .back { height: 70vh; position: absolute; top:auto; opacity:1; } #piveWrapp { max-height: 100vh; top: 70vh; transform: translate(0px, -70%); } #piveWrapp > div { display: -webkit-box;display: -ms-flexbox;display: flex; -ms-flex-wrap:nowrap;flex-wrap:nowrap; width: 100%; max-width: calc(100vw - 140px); margin:0 auto; } #piveWrapp a { width:auto; } #piveWrapp a:hover .produktImgWrapp { transform: translate(0px, -5%); } #piveWrapp a .produktImgWrapp { max-width: none; } #piveWrapp a:hover .produktIme { opacity: 1; font-size: 29px; } .produktIme { color: #ffffff; font-size: 30px; white-space: nowrap; left: 50%; opacity: 0; position: absolute; top: -20%; bottom: auto; transform: translate(-50%, 0px); transition: all 250ms cubic-bezier(0.455, 0.030, 0.515, 0.955); } .produktKvadrat { background: rgba(255, 255, 255, 0); display: block; height: 100px; left: 50%; position: absolute; top: -24%; transform: rotate(45deg) translate(-50%, 0px); transform-origin: 15% 45% 0; width: 100px; transition: all 250ms cubic-bezier(0.455, 0.030, 0.515, 0.955); z-index:-1; } #piveWrapp a:hover .produktKvadrat { background: rgba(255, 255, 255, 0.15); } } @media (min-width: 992px) { #piveWrapp a:hover .produktIme { font-size: 36px; } .produktKvadrat { height: 130px; width: 130px; top: -25%; } }
Izberite jezik