Q:

Issues with css3 animation on text

i'm building a website and i got some issues with a text slide animation.
here is the fiddle
And here is the animation part : 
.slide {

-webkit-animation-name: slide;
  -webkit-animation-duration: 1s;
  animation-name: slide;
  animation-duration: 1s;
}

@-webkit-keyframes slide{
  from {
    margin-left: 100%;
    width: 300%
  }

  to {
    margin-left: 0%;
    width: 100%;
  }
}

@keyframes slide{
  from {
    margin-left: 100%;
    width: 300%
  }

  to {
    margin-left: 0%;
    width: 100%;
  }
}

As you can see when the text slides in, the sentence shrinks itself and it doesn't look really smooth. Can someone help me with that ?
I also have a little problem with the blue banner : It looks like it has a margin on the left of like 10px and i can't remove it.
How can i have the banner to take the entire width of the browser ?
This is my first time posting here so if i'm doing something wrong could you tell me please :)

A:

As your div .text has no width assigned, he tries to fit the text inside your div. You can change this by adding a width to your .text:
.text {
  width: 100%;
} 

Second, the margin you want to avoid is caused by a browser standard for your body tag. You can remove it by adding margin: 0; to it:
body {
  margin: 0;
}

You can check your working JS FIDDLE demo. I have added a black background to demonstrate the removed margin.

