Below is my css code
.page1 {
width: 0%; }
.page2 {
width: 0%; }
Below is jQuery syntax
$('.page2').animate({
width: "10%"
});
when I change my webpage to page2 from page1 , one of div of this page will change its width because the class of this div is change to .page2 which original is .page1.
and with jQuery syntax above, the div will have animate effect.
My question is, can I do same thing without jQuery?
I change my css code to :
.page1 {
width: 0%;
transition: width 2s; }
.page2 {
width: 0%;
transition: width 2s; }
but nothing happened.