Skip to content

Instantly share code, notes, and snippets.

View xiaohutai's full-sized avatar

Xiao-Hu Tai xiaohutai

  • The Netherlands
View GitHub Profile
.hero-img {
width: 100%;
height: 100%;
background: url('/img/hero.jpg') center center no-repeat;
background-size: cover;
position: relative;
&:after {
content: '';
position: absolute;
top: 0;
.disable-hover,
.disable-hover * {
pointer-events: none !important;
}
@xiaohutai
xiaohutai / user.cfg
Created November 12, 2013 06:29
Battlefield 4 user.cfg
RenderDevice.Dx11Enable 1
RenderDevice.Dx11Dot1Enable 1
RenderDevice.Dx11Dot1RuntimeEnable 1
RenderDevice.TripleBufferingEnable 0
WorldRender.TransparencyShadowmapsEnable 0
WorldRender.MotionBlurEnable 0
WorldRender.MotionBlurForceOn 0
WorldRender.MotionBlurFixedShutterTime 0
WorldRender.MotionBlurMax 0
WorldRender.MotionBlurQuality 0
(function() {
if (document.getElementById('flying-focus')) return;
var flyingFocus = document.createElement('flying-focus'); // use uniq element name to decrease the chances of a conflict with website styles
flyingFocus.id = 'flying-focus';
document.body.appendChild(flyingFocus);
var DURATION = 100;
flyingFocus.style.transitionDuration = flyingFocus.style.WebkitTransitionDuration = DURATION / 1000 + 's';