diff --git a/app/assets/javascripts/components/features/account/components/header.jsx b/app/assets/javascripts/components/features/account/components/header.jsx
index e1aae3c7700..a359963c42b 100644
--- a/app/assets/javascripts/components/features/account/components/header.jsx
+++ b/app/assets/javascripts/components/features/account/components/header.jsx
@@ -4,6 +4,7 @@ import emojify from '../../../emoji';
import escapeTextContentForBrowser from 'escape-html';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import IconButton from '../../../components/icon_button';
+import { Motion, spring } from 'react-motion';
const messages = defineMessages({
unfollow: { id: 'account.unfollow', defaultMessage: 'Unfollow' },
@@ -11,6 +12,47 @@ const messages = defineMessages({
requested: { id: 'account.requested', defaultMessage: 'Awaiting approval' }
});
+const Avatar = React.createClass({
+
+ propTypes: {
+ account: ImmutablePropTypes.map.isRequired
+ },
+
+ getInitialState () {
+ return {
+ isHovered: false
+ };
+ },
+
+ mixins: [PureRenderMixin],
+
+ handleMouseOver () {
+ if (this.state.isHovered) return;
+ this.setState({ isHovered: true });
+ },
+
+ handleMouseOut () {
+ if (!this.state.isHovered) return;
+ this.setState({ isHovered: false });
+ },
+
+ render () {
+ const { account } = this.props;
+ const { isHovered } = this.state;
+
+ return (
+