Well, i don't know if the `return` in the `transform` function can work, but, someone know if there is a way where i can get something similar to this? Put a function inside an object...

```
var t = $(this).scrollTop();
var h = $(window).height();

function transform(val){
    return "-webkit-transform": "translateY(" + val + "%)",
    "-ms-transform": "translateY(" + val + "%)",
    "transform": "translateY(" + val + "%)";
}

$("#header").css({
    opacity: 50 * (t/h),
    tranform(50 * (t/h))
});

```