On click trigger element to make another element slide?

Hey im just getting the hang of triggers and elements, but i cant seem to figure out or find a way to make an element slide after clicking on another trigger element.

in the example im trying to get the magnify icon to slide out the search bar, ive figured out how to do this with the hide/show on click, but not with the slide function.