I want to know, what script drives the "screen options" animation toggle in WordPress.

I'm referring to the options menu that slides out when the admin clicks the "Screen Options" link near the upper right corner of the window in the Post, or Page, or Categories, etc. – and slides back in when the same link is clicked again.

Would appreciate it if someone knowledgeable could show me the exact location of that JavaScript code snippet.

1 Answer 1


This is in wp-admin/js/common.js or wp-admin/js/common.min.js:

// Scroll into view when focused
$('#contextual-help-link, #show-settings-link').on( 'focus.scroll-into-view', function(e){
    if ( e.target.scrollIntoView )

Found with a search for show-settings-link in the complete source. :)


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.