Solved

CSS3 can't get scaleX to work

Posted on 2013-12-03
4
335 Views
Last Modified: 2013-12-04
I have the following code below I'm using to test some animations, but the scaleX property doesn't seem to work when I mouseover the buttons (around lines 84). Code is below.  Any ideas on how to get this to work?

<html>

<head>
<style>
header {
    text-align: justify;
    height: 5em;
    /*padding: .9em 2%;*/
    background: #484743;
    color: #fff;
    padding-right:200px;
}

header::after {
    content: '';
    display: inline-block;
    width: 100%;
}

header > div,
header > div::before,
header nav,
header > div h1 {
    display: inline-block;
    vertical-align: middle;
}


header > div {
   /*    height: 100%;*/
}

header > div::before {
    content: '';
    /* height: 100%;*/
}

header > div h1 {
    font-size: 20px;
    color: #363636;
    vertical-align:middle;
    text-align:center;
    padding:1.2em;
}

header > div.logobox {
    background: #c4c4c4;
    height:5em;
    width:6em;
    vertical-align: middle;
    text-align: center;
}
header nav a {
    padding:2.5em;
    line-height: 3em;
    white-space: nowrap;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #ffffff;
    text-transform: uppercase;
    text-decoration: none;
    vertical-align: middle;
}

header nav a:hover {
    color:#484743;
    background-color:#f2f2f2;
   -webkit-transition: background .7s ease-in-out;
   -moz-transition: background .7s ease-in-out;
   -ms-transition: background .7s ease-in-out;
   -o-transition: background .7s ease-in-out;
   transition: background .7s ease-in-out;
}

header .linkbox {
/*    background: #252525;*/
    height: 4em;
    display: inline-block;
    vertical-align: middle;
    padding: 1em 1em 0em 1em;


   -webkit-transition: scaleX(1.5);
   -moz-transition: scaleX(1.5);
   -ms-transition: scaleX(1.5);
   -o-transition: scaleX(1.5);
   transition: scaleX(1.5);
}

header .linkbox:hover {
    background: #444444;
    vertical-align: middle;


}
</style>

</head>
<body>

<header>
    <div class=logobox><h1>Logo</h1></div>
    <nav>
        <div class=linkbox><a href=#>Test 1</a></div>
        <div class=linkbox><a href=#>TEst 2</a></div>
        <div class=linkbox><a href=#>Test 3</a></div>
    </nav>
</header>

</body>
</html>

Open in new window

0
Comment
Question by:saturation
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 57

Accepted Solution

by:
Julian Hansen earned 500 total points
ID: 39694709
Try changing transition => transform
0
 

Author Closing Comment

by:saturation
ID: 39695697
Worked perfect--I overlooked it, thanks!.  

JulianH, I'll put code tags around next time.
0
 
LVL 57

Expert Comment

by:Julian Hansen
ID: 39696039
You are welcome - thanks for the points.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question