towards you until it passes.Remember to keep your barre finger as close to the fret as possible especially near the nut.If you do this religiously every day,you will see your strength and endurance increase markedly.You will be amazed at how easily you can barre your electric after just a short time.Also get some books or web references to finger exercises and practice them RELIGIOUSLY every time you pick up the guitar before you do anything else.Do them until you
can't do anymore.This is one of the areas that makes or breaks guitarists.I have known many who aspired to play but gave up because they didn't want it bad enough to endure the labor.Good Luck